Package io.dropwizard.vavr.jersey
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(io.vavr.Value<?> entity, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(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)
-
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:
getSizein interfacejakarta.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:
isWriteablein interfacejakarta.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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<io.vavr.Value<?>>- Throws:
IOException
-