Class RequestContext<I,O>

java.lang.Object
ai.docling.serve.client.operations.RequestContext<I,O>

public class RequestContext<I,O> extends Object
  • Method Details

    • getUri

      public String getUri()
      Returns the URI for the request.
      Returns:
      the URI string
    • getRequest

      public @Nullable I getRequest()
      Returns the request object.
      Returns:
      the request object of type I
    • getResponseType

      public Class<O> getResponseType()
      Returns the response type class.
      Returns:
      the Class object representing the response type O
    • builder

      public static <I, O> RequestContext.Builder<I,O> builder()
      Creates a new Builder instance for constructing a RequestContext.
      Type Parameters:
      I - the request type
      O - the response type
      Returns:
      a new Builder instance
    • toBuilder

      public RequestContext.Builder<I,O> toBuilder()
      Creates a new Builder instance initialized with the values from this RequestContext.
      Returns:
      a new Builder instance with values copied from this RequestContext