Package org.apache.iceberg.rest
Interface RESTClient
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
HTTPClient
Interface for a basic HTTP Client for interfacing with the REST catalog.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends RESTResponse>
Tdelete
(String path, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) <T extends RESTResponse>
Tdelete
(String path, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tdelete
(String path, Map<String, String> queryParams, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tdelete
(String path, Map<String, String> queryParams, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tget
(String path, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tget
(String path, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tget
(String path, Map<String, String> queryParams, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) <T extends RESTResponse>
Tget
(String path, Map<String, String> queryParams, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) default void
void
default <T extends RESTResponse>
Tpost
(String path, RESTRequest body, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tpost
(String path, RESTRequest body, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) <T extends RESTResponse>
Tpost
(String path, RESTRequest body, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) default <T extends RESTResponse>
Tpost
(String path, RESTRequest body, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) default <T extends RESTResponse>
TpostForm
(String path, Map<String, String> formData, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) <T extends RESTResponse>
TpostForm
(String path, Map<String, String> formData, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler)
-
Method Details
-
head
-
head
-
delete
-
delete
default <T extends RESTResponse> T delete(String path, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) -
delete
<T extends RESTResponse> T delete(String path, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) -
delete
-
get
default <T extends RESTResponse> T get(String path, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) -
get
default <T extends RESTResponse> T get(String path, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) -
get
-
get
-
post
default <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler) -
post
default <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Supplier<Map<String, String>> headers, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) -
post
default <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler, Consumer<Map<String, String>> responseHeaders) -
post
<T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, Map<String, String> headers, Consumer<ErrorResponse> errorHandler) -
postForm
-
postForm
-