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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    readFrom(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 @ClientObjectMapper due to the lack of a complete context in those requests

    Methods inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader

    isReadable, isReadable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.WebApplicationException
      We need a custom version of the Jackson provider because reading SSE values does not work properly with @ClientObjectMapper due to the lack of a complete context in those requests
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException