Class AnthropicRestApi.AnthropicRestApiWriterInterceptor
java.lang.Object
io.quarkiverse.langchain4j.anthropic.AnthropicRestApi.AnthropicRestApiWriterInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
- Enclosing interface:
- AnthropicRestApi
public static class AnthropicRestApi.AnthropicRestApiWriterInterceptor
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
-
AnthropicRestApiWriterInterceptor
public AnthropicRestApiWriterInterceptor()
-
-
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
-