Class MistralAiRestApi.MistralAiRestApiWriterInterceptor
java.lang.Object
io.quarkiverse.langchain4j.mistralai.MistralAiRestApi.MistralAiRestApiWriterInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
- Enclosing interface:
- MistralAiRestApi
public static class MistralAiRestApi.MistralAiRestApiWriterInterceptor
extends Object
implements jakarta.ws.rs.ext.WriterInterceptor
The point of this is to properly set the
stream value of the request
so users don't have to remember to set it manually-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
Constructor Details
-
MistralAiRestApiWriterInterceptor
public MistralAiRestApiWriterInterceptor()
-
-
Method Details
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-