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