Package org.apache.iceberg.rest
Interface HTTPRequest
@Immutable
public interface HTTPRequest
Represents an HTTP request.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbaseUri()Returns the base URI configured at the REST client level.body()Returns the raw, unencoded request body.default voidcheck()default StringReturns the encoded request body as a string.default HTTPHeadersheaders()Returns the headers of this request.default com.fasterxml.jackson.databind.ObjectMappermapper()Returns theObjectMapperto use for encoding the request body.method()Returns the HTTP method of this request.path()Returns the path of this request.Returns the query parameters of this request.default URIReturns the full URI of this request.
- 
Method Details- 
baseUriReturns the base URI configured at the REST client level. The base URI is used to construct the fullrequestUri(). May be null if the REST client does not have a base URI and the path is an absolute URI.
- 
requestUriReturns the full URI of this request. The URI is constructed from the base URI, path, and query parameters. It cannot be modified directly.
- 
methodHTTPRequest.HTTPMethod method()Returns the HTTP method of this request.
- 
pathString path()Returns the path of this request.
- 
queryParametersReturns the query parameters of this request.
- 
headersReturns the headers of this request.
- 
bodyReturns the raw, unencoded request body.
- 
encodedBodyReturns the encoded request body as a string.
- 
mapper@Default default com.fasterxml.jackson.databind.ObjectMapper mapper()Returns theObjectMapperto use for encoding the request body. The default isRESTObjectMapper.mapper().
- 
check@Check default void check()
 
-