Class MistralAiRestApi.MistralAiRestApiJacksonReader
java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader
io.quarkiverse.langchain4j.mistralai.MistralAiRestApi.MistralAiRestApiJacksonReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Object>
- Enclosing interface:
- MistralAiRestApi
@Priority(4900)
public static class MistralAiRestApi.MistralAiRestApiJacksonReader
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
-
MistralAiRestApiJacksonReader
public MistralAiRestApiJacksonReader()
-
-
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
-