Class ValueMessageBodyWriter

java.lang.Object
io.dropwizard.vavr.jersey.ValueMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>

@Provider @Produces("*/*") @Priority(2147483647) public class ValueMessageBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>
  • Constructor Details

    • ValueMessageBodyWriter

      public ValueMessageBodyWriter()
  • Method Details

    • getSize

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

      public void writeTo(io.vavr.Value<?> 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<io.vavr.Value<?>>
      Throws:
      IOException