java.lang.Object
ai.docling.serve.client.operations.RequestContext<I,O>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <I,O> RequestContext.Builder<I, O> builder()Creates a new Builder instance for constructing a RequestContext.@Nullable IReturns the request object.Returns the response type class.getUri()Returns the URI for the request.Creates a new Builder instance initialized with the values from this RequestContext.
-
Method Details
-
getUri
Returns the URI for the request.- Returns:
- the URI string
-
getRequest
Returns the request object.- Returns:
- the request object of type I
-
getResponseType
Returns the response type class.- Returns:
- the Class object representing the response type O
-
builder
Creates a new Builder instance for constructing a RequestContext.- Type Parameters:
I- the request typeO- the response type- Returns:
- a new Builder instance
-
toBuilder
Creates a new Builder instance initialized with the values from this RequestContext.- Returns:
- a new Builder instance with values copied from this RequestContext
-