Class IncorrectCollectionWriter
java.lang.Object
ee.jakarta.tck.ws.rs.common.AbstractMessageBodyRW
ee.jakarta.tck.ws.rs.ee.resource.java2entity.IncorrectCollectionWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
@Provider
public class IncorrectCollectionWriter
extends AbstractMessageBodyRW
implements jakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
Complement to CollectionWriter, writes error
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Collection<?> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(Collection<?> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class ee.jakarta.tck.ws.rs.common.AbstractMessageBodyRW
getPathValue, getSpecifiedAnnotation, getSpecifiedAnnotationValue
-
Field Details
-
ERROR
- See Also:
-
-
Constructor Details
-
IncorrectCollectionWriter
public IncorrectCollectionWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
-
getSize
public long getSize(Collection<?> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
-
writeTo
public void writeTo(Collection<?> t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-