Class AnthropicRestApi.AnthropicRestApiJacksonReader
java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader
io.quarkiverse.langchain4j.anthropic.AnthropicRestApi.AnthropicRestApiJacksonReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Object>
- Enclosing interface:
- AnthropicRestApi
@Priority(4900)
public static class AnthropicRestApi.AnthropicRestApiJacksonReader
extends org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) We need a custom version of the Jackson provider because reading SSE values does not work properly with@ClientObjectMapperdue to the lack of a complete context in those requestsMethods inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader
isReadable, isReadable
-
Constructor Details
-
AnthropicRestApiJacksonReader
public AnthropicRestApiJacksonReader()
-
-
Method Details
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationExceptionWe need a custom version of the Jackson provider because reading SSE values does not work properly with@ClientObjectMapperdue to the lack of a complete context in those requests- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-