Class ValueMessageBodyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>

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

      • ValueMessageBodyWriter

        public ValueMessageBodyWriter()
    • Method Detail

      • getSize

        public long getSize​(io.vavr.Value<?> entity,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>
      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>
      • writeTo

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