Class ClientJacksonMessageBodyWriter
java.lang.Object
io.quarkus.rest.client.reactive.jackson.runtime.serialisers.ClientJacksonMessageBodyWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>,org.jboss.resteasy.reactive.client.spi.ClientRestHandler,org.jboss.resteasy.reactive.spi.RestHandler<org.jboss.resteasy.reactive.client.impl.RestClientRequestContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectWriterprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionClientJacksonMessageBodyWriter(com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectWritergetEffectiveWriter(jakarta.ws.rs.core.MediaType responseMediaType) voidhandle(org.jboss.resteasy.reactive.client.impl.RestClientRequestContext requestContext) booleanisWriteable(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(Object o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Field Details
-
originalMapper
protected final com.fasterxml.jackson.databind.ObjectMapper originalMapper -
defaultWriter
protected final com.fasterxml.jackson.databind.ObjectWriter defaultWriter
-
-
Constructor Details
-
ClientJacksonMessageBodyWriter
@Inject public ClientJacksonMessageBodyWriter(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
handle
public void handle(org.jboss.resteasy.reactive.client.impl.RestClientRequestContext requestContext) throws Exception - Specified by:
handlein interfaceorg.jboss.resteasy.reactive.spi.RestHandler<org.jboss.resteasy.reactive.client.impl.RestClientRequestContext>- Throws:
Exception
-
getEffectiveWriter
protected com.fasterxml.jackson.databind.ObjectWriter getEffectiveWriter(jakarta.ws.rs.core.MediaType responseMediaType)
-