Package io.dropwizard.vavr.jersey
Class ValueMessageBodyWriter
- java.lang.Object
-
- io.dropwizard.vavr.jersey.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 Summary
Constructors Constructor Description ValueMessageBodyWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(io.vavr.Value<?> entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(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)
-
-
-
Method Detail
-
getSize
public long getSize(io.vavr.Value<?> entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.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:
isWriteablein interfacejavax.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:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>- Throws:
IOException
-
-