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 Details

    • AnthropicRestApiWriterInterceptor

      public AnthropicRestApiWriterInterceptor()
  • Method Details

    • aroundWriteTo

      public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      aroundWriteTo in interface jakarta.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException