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 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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.ws.rs.ext.MessageBodyReader
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException