Modifier and Type | Method | Description |
---|---|---|
abstract HttpRequest |
HttpRequest.Builder.build() |
Builds and returns a
HttpRequest . |
abstract HttpRequest |
HttpResponse.finalRequest() |
Returns the final
HttpRequest that was sent on the wire for the
exchange ( may, or may not, be the same as the initial request ). |
abstract HttpRequest |
HttpResponse.request() |
Returns the initial
HttpRequest that initiated the exchange. |
Modifier and Type | Method | Description |
---|---|---|
Set<Map.Entry<HttpRequest,CompletableFuture<HttpResponse<V>>>> |
MultiMapResult.entrySet() |
|
Set<HttpRequest> |
MultiMapResult.keySet() |
Modifier and Type | Method | Description |
---|---|---|
void |
HttpResponse.MultiProcessor.onError(HttpRequest request,
Throwable t) |
Called if an error occurs receiving a response.
|
Optional<HttpResponse.BodyHandler<T>> |
HttpResponse.MultiProcessor.onRequest(HttpRequest request) |
Called for the main request and each push promise that is received.
|
CompletableFuture<HttpResponse<V>> |
MultiMapResult.put(HttpRequest key,
CompletableFuture<HttpResponse<V>> value) |
|
abstract <T> HttpResponse<T> |
HttpClient.send(HttpRequest req,
HttpResponse.BodyHandler<T> responseBodyHandler) |
Sends the given request using this client, blocking if necessary to get
the response.
|
abstract <T> CompletableFuture<HttpResponse<T>> |
HttpClient.sendAsync(HttpRequest req,
HttpResponse.BodyHandler<T> responseBodyHandler) |
Sends the given request asynchronously using this client and the given
response handler.
|
abstract <U,T> CompletableFuture<U> |
HttpClient.sendAsync(HttpRequest req,
HttpResponse.MultiProcessor<U,T> multiProcessor) |
Sends the given request asynchronously using this client and the given
multi response handler.
|
Modifier and Type | Method | Description |
---|---|---|
static <V> HttpResponse.MultiProcessor<MultiMapResult<V>,V> |
HttpResponse.MultiProcessor.asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler) |
Returns a general purpose handler for multi responses.
|
static <V> HttpResponse.MultiProcessor<MultiMapResult<V>,V> |
HttpResponse.MultiProcessor.asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler,
boolean completion) |
Returns a general purpose handler for multi responses.
|
void |
MultiMapResult.putAll(Map<? extends HttpRequest,? extends CompletableFuture<HttpResponse<V>>> m) |
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b161-1