Class WriterNotBuiltinTestWriter
java.lang.Object
org.jboss.resteasy.embedded.test.providers.custom.resource.WriterNotBuiltinTestWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader
,jakarta.ws.rs.ext.MessageBodyWriter
@Provider
@Produces("*/*")
@Consumes("*/*")
public class WriterNotBuiltinTestWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter, jakarta.ws.rs.ext.MessageBodyReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Object o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isReadable
(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) readFrom
(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream) void
writeTo
(Object o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, OutputStream entityStream)
-
Field Details
-
used
public static volatile boolean used
-
-
Constructor Details
-
WriterNotBuiltinTestWriter
public WriterNotBuiltinTestWriter()
-
-
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
-
getSize
public long getSize(Object o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter
-
writeTo
public void writeTo(Object o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
isReadable
public boolean isReadable(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader
-
readFrom
public Object readFrom(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-