Package org.apache.iceberg.rest
Interface HTTPRequest
@Immutable
public interface HTTPRequest
Represents an HTTP request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()
Returns the base URI configured at the REST client level.body()
Returns the raw, unencoded request body.default void
check()
default String
Returns the encoded request body as a string.default HTTPHeaders
headers()
Returns the headers of this request.default com.fasterxml.jackson.databind.ObjectMapper
mapper()
Returns theObjectMapper
to 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 URI
Returns the full URI of this request.
-
Method Details
-
baseUri
URI baseUri()Returns the base URI configured at the REST client level. The base URI is used to construct the fullrequestUri()
. -
requestUri
Returns the full URI of this request. The URI is constructed from the base URI, path, and query parameters. It cannot be modified directly. -
method
HTTPRequest.HTTPMethod method()Returns the HTTP method of this request. -
path
String path()Returns the path of this request. -
queryParameters
Returns the query parameters of this request. -
headers
Returns the headers of this request. -
body
Returns the raw, unencoded request body. -
encodedBody
Returns the encoded request body as a string. -
mapper
@Default default com.fasterxml.jackson.databind.ObjectMapper mapper()Returns theObjectMapper
to use for encoding the request body. The default isRESTObjectMapper.mapper()
. -
check
@Check default void check()
-