All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
protected void |
addCookieStore(java.net.URI uri,
java.util.List<FromServer.Header<?>> headers) |
static HttpBuilder |
configure(Closure closure)
Creates an HttpBuilder using the JavaHttpBuilder factory instance configured with the provided configuration closure.
|
static HttpBuilder |
configure(java.util.function.Consumer<HttpObjectConfig> configuration)
Creates an HttpBuilder using the JavaHttpBuilder factory instance configured with the provided configuration function.
|
static HttpBuilder |
configure(java.util.function.Function<HttpObjectConfig,? extends HttpBuilder> factory)
Creates an HttpBuilder with the default configuration using the provided factory function ( JavaHttpBuilder or
one of the other HTTP client implementation functions.
|
static HttpBuilder |
configure(java.util.function.Function<HttpObjectConfig,? extends HttpBuilder> factory,
Closure closure)
Creates an HttpBuilder configured with the provided configuration closure, using the defaultFactory as the client factory.
|
static HttpBuilder |
configure(java.util.function.Function<HttpObjectConfig,? extends HttpBuilder> factory,
java.util.function.Consumer<HttpObjectConfig> configuration)
Creates an HttpBuilder using the provided client factory function, configured with the provided configuration function.
|
static java.util.List<java.net.HttpCookie> |
cookies(java.util.List<FromServer.Header<?>> headers) |
protected java.util.Map<java.lang.String,java.lang.String> |
cookiesToAdd(HttpObjectConfig.Client clientConfig,
ChainedHttpConfig.ChainedRequest cr) |
java.lang.Object |
delete()
Executes a DELETE request on the configured URI.
|
<T> T |
delete(java.lang.Class<T> type,
Closure closure)
Executes an DELETE request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
delete(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a DELETE request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
delete(Closure closure)
Executes a DELETE request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
delete(java.util.function.Consumer<HttpConfig> configuration)
Executes a DELETE request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
deleteAsync()
Executes an asynchronous DELETE request on the configured URI (asynchronous alias to the delete() method).
|
<T> java.util.concurrent.CompletableFuture<T> |
deleteAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous DELETE request on the configured URI (asynchronous alias to the delete(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
deleteAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous DELETE request on the configured URI (asynchronous alias to the delete(Class,Consumer) method), with additional
configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
deleteAsync(Closure closure)
Executes an asynchronous DELETE request on the configured URI (an asynchronous alias to the delete(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
deleteAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous DELETE request on the configured URI (asynchronous alias to the delete(Consumer) method), with additional
configuration provided by the configuration function.
|
protected abstract java.lang.Object |
doDelete(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doGet(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doHead(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doOptions(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doPatch(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doPost(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doPut(ChainedHttpConfig config) |
protected abstract java.lang.Object |
doTrace(ChainedHttpConfig config) |
static java.lang.Throwable |
findCause(java.lang.Exception e) |
java.lang.Object |
get()
Executes a GET request on the configured URI.
|
<T> T |
get(java.lang.Class<T> type,
Closure closure)
Executes a GET request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
get(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a GET request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
get(Closure closure)
Executes a GET request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
get(java.util.function.Consumer<HttpConfig> configuration)
Executes a GET request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
getAsync()
Executes an asynchronous GET request on the configured URI (asynchronous alias to the get() method.
|
<T> java.util.concurrent.CompletableFuture<T> |
getAsync(java.lang.Class<T> type,
Closure closure)
Executes asynchronous GET request on the configured URI (alias for the get(Class, Closure) method), with additional configuration provided by
the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
getAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes asynchronous GET request on the configured URI (alias for the get(Class, Consumer) method), with additional configuration provided by
the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
getAsync(Closure closure)
Executes an asynchronous GET request on the configured URI (asynchronous alias to the get(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
getAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous GET request on the configured URI (asynchronous alias to get(Consumer) ), with additional configuration provided by the
configuration function.
|
abstract java.lang.Object |
getClientImplementation()
Used to retrieve the instance of the internal client implementation.
|
protected java.net.CookieManager |
getCookieManager() |
java.net.CookieStore |
getCookieStore()
Returns the cookie store used by this builder
|
abstract java.util.concurrent.Executor |
getExecutor() |
protected abstract ChainedHttpConfig |
getObjectConfig() |
protected java.lang.Object |
handleException(ChainedHttpConfig.ChainedResponse cr,
java.lang.Exception e) |
java.lang.Object |
head()
Executes a HEAD request on the configured URI.
|
<T> T |
head(java.lang.Class<T> type,
Closure closure)
Executes a HEAD request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
head(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a HEAD request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
head(Closure closure)
Executes a HEAD request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
head(java.util.function.Consumer<HttpConfig> configuration)
Executes a HEAD request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
headAsync()
Executes an asynchronous HEAD request on the configured URI (asynchronous alias to the head() method.
|
<T> java.util.concurrent.CompletableFuture<T> |
headAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous HEAD request on the configured URI (asynchronous alias to the head(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
headAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous HEAD request on the configured URI (asynchronous alias to head(Class,Consumer) ), with additional configuration
provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
headAsync(Closure closure)
Executes an asynchronous HEAD request on the configured URI (asynchronous alias to the head(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
headAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous HEAD request on the configured URI (asynchronous alias to head(Consumer) ), with additional configuration provided by the
configuration function.
|
java.lang.Object |
options()
Executes a OPTIONS request on the configured URI.
|
<T> T |
options(java.lang.Class<T> type,
Closure closure)
Executes a OPTIONS request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
options(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a OPTIONS request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
options(Closure closure)
Executes a OPTIONS request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
options(java.util.function.Consumer<HttpConfig> configuration)
Executes a OPTIONS request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
optionsAsync()
Executes an asynchronous OPTIONS request on the configured URI (asynchronous alias to the options() method.
|
<T> java.util.concurrent.CompletableFuture<T> |
optionsAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous OPTIONS request on the configured URI (asynchronous alias to the options(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
optionsAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous OPTIONS request on the configured URI (asynchronous alias to options(Class,Consumer) ), with additional configuration
provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
optionsAsync(Closure closure)
Executes an asynchronous OPTIONS request on the configured URI (asynchronous alias to the options(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
optionsAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous OPTIONS request on the configured URI (asynchronous alias to options(Consumer) ), with additional configuration
provided by the configuration function.
|
java.lang.Object |
patch()
Executes a PATCH request on the configured URI.
|
<T> T |
patch(java.lang.Class<T> type,
Closure closure)
Executes a PATCH request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
patch(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a PATCH request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
patch(Closure closure)
Executes a PATCH request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
patch(java.util.function.Consumer<HttpConfig> configuration)
Executes a PATCH request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
patchAsync()
Executes an asynchronous PATCH request on the configured URI (asynchronous alias to the patch() method.
|
<T> java.util.concurrent.CompletableFuture<T> |
patchAsync(java.lang.Class<T> type,
Closure closure)
Executes asynchronous PATCH request on the configured URI (alias for the patch(Class, Closure) method), with additional configuration provided by
the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
patchAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes asynchronous PATCH request on the configured URI (alias for the patch(Class, Consumer) method), with additional configuration provided by
the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
patchAsync(Closure closure)
Executes an asynchronous PATCH request on the configured URI (asynchronous alias to the patch(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
patchAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous PATCH request on the configured URI (asynchronous alias to patch(Consumer) ), with additional configuration provided by the
configuration function.
|
java.lang.Object |
post()
Executes a POST request on the configured URI.
|
<T> T |
post(java.lang.Class<T> type,
Closure closure)
Executes an POST request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
post(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a POST request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
post(Closure closure)
Executes a POST request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
post(java.util.function.Consumer<HttpConfig> configuration)
Executes a POST request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
postAsync()
Executes an asynchronous POST request on the configured URI (asynchronous alias to the post() method).
|
<T> java.util.concurrent.CompletableFuture<T> |
postAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous POST request on the configured URI (asynchronous alias to the post(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
postAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous POST request on the configured URI (asynchronous alias to put(Class,Consumer) ), with additional configuration provided
by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
postAsync(Closure closure)
Executes an asynchronous POST request on the configured URI (an asynchronous alias to the post(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
postAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous POST request on the configured URI (asynchronous alias to post(Consumer) ), with additional configuration provided by the
configuration function.
|
java.lang.Object |
put()
Executes a PUT request on the configured URI.
|
<T> T |
put(java.lang.Class<T> type,
Closure closure)
Executes an PUT request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
put(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a PUT request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
put(Closure closure)
Executes a PUT request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
put(java.util.function.Consumer<HttpConfig> configuration)
Executes a PUT request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
putAsync()
Executes an asynchronous PUT request on the configured URI (asynchronous alias to the put() method).
|
<T> java.util.concurrent.CompletableFuture<T> |
putAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous PUT request on the configured URI (asynchronous alias to the put(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
putAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous PUT request on the configured URI (asynchronous alias to put(Class,Consumer) ), with additional configuration provided
by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
putAsync(Closure closure)
Executes an asynchronous PUT request on the configured URI (an asynchronous alias to the put(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
putAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous PUT request on the configured URI (asynchronous alias to put(Consumer) ), with additional configuration provided by the
configuration function.
|
java.lang.Object |
trace()
Executes a TRACE request on the configured URI.
|
<T> T |
trace(java.lang.Class<T> type,
Closure closure)
Executes a TRACE request on the configured URI, with additional configuration provided by the configuration closure.
|
<T> T |
trace(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes a TRACE request on the configured URI, with additional configuration provided by the configuration function.
|
java.lang.Object |
trace(Closure closure)
Executes a TRACE request on the configured URI, with additional configuration provided by the configuration closure.
|
java.lang.Object |
trace(java.util.function.Consumer<HttpConfig> configuration)
Executes a TRACE request on the configured URI, with additional configuration provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
traceAsync()
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to the trace() method.
|
<T> java.util.concurrent.CompletableFuture<T> |
traceAsync(java.lang.Class<T> type,
Closure closure)
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to the trace(Class,Closure) method), with additional
configuration provided by the configuration closure.
|
<T> java.util.concurrent.CompletableFuture<T> |
traceAsync(java.lang.Class<T> type,
java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to trace(Class,Consumer) ), with additional configuration
provided by the configuration function.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
traceAsync(Closure closure)
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to the trace(Closure) method), with additional configuration
provided by the configuration closure.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
traceAsync(java.util.function.Consumer<HttpConfig> configuration)
Executes an asynchronous TRACE request on the configured URI (asynchronous alias to trace(Consumer) ), with additional configuration
provided by the configuration function.
|