Package org.apache.iceberg.rest
Class HTTPClient
java.lang.Object
org.apache.iceberg.rest.BaseHTTPClient
org.apache.iceberg.rest.HTTPClient
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- RESTClient
An HttpClient for usage with the REST catalog.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic HTTPClient.Builderprotected HTTPRequestbuildRequest(HTTPRequest.HTTPMethod method, String path, Map<String, String> queryParams, Map<String, String> headers, Object body) voidclose()protected <T extends RESTResponse>
 Texecute(HTTPRequest req, Class<T> responseType, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) protected <T extends RESTResponse>
 Texecute(HTTPRequest req, Class<T> responseType, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders, ParserContext parserContext) withAuthSession(AuthSession session) Returns a REST client that authenticates requests using the given session.Methods inherited from class org.apache.iceberg.rest.BaseHTTPClientdelete, delete, get, get, head, post, post, post, postForm
- 
Method Details- 
withAuthSessionDescription copied from interface:RESTClientReturns a REST client that authenticates requests using the given session.Implementation requirements: - Closing the returned client SHOULD NOT affect this client: if they share common resources, the resources SHOULD NOT be closed until the parent client is closed.
- Closing the returned client SHOULD NOT close the given AuthSession: this is the responsibility of this method's caller.
 - Specified by:
- withAuthSessionin interface- RESTClient
- Specified by:
- withAuthSessionin class- BaseHTTPClient
 
- 
buildRequestprotected HTTPRequest buildRequest(HTTPRequest.HTTPMethod method, String path, Map<String, String> queryParams, Map<String, String> headers, Object body) - Specified by:
- buildRequestin class- BaseHTTPClient
 
- 
executeprotected <T extends RESTResponse> T execute(HTTPRequest req, Class<T> responseType, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) - Specified by:
- executein class- BaseHTTPClient
 
- 
executeprotected <T extends RESTResponse> T execute(HTTPRequest req, Class<T> responseType, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders, ParserContext parserContext) - Overrides:
- executein class- BaseHTTPClient
 
- 
close- Throws:
- IOException
 
- 
builder
 
-