Class OptionalIntMessageBodyWriter

java.lang.Object
io.dropwizard.jersey.optional.OptionalIntMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<OptionalInt>

@Provider @Produces("*/*") public class OptionalIntMessageBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<OptionalInt>
  • Constructor Details

    • OptionalIntMessageBodyWriter

      public OptionalIntMessageBodyWriter()
  • Method Details

    • getSize

      public long getSize(OptionalInt entity, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<OptionalInt>
    • 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<OptionalInt>
    • writeTo

      public void writeTo(OptionalInt entity, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<OptionalInt>
      Throws:
      IOException