Modifier and Type | Method | Description |
---|---|---|
HttpResponse.BodyProcessor<T> |
HttpResponse.BodyHandler.apply(int statusCode,
HttpHeaders responseHeaders) |
Return a
BodyProcessor considering the given response status
code and headers. |
static HttpResponse.BodyProcessor<byte[]> |
HttpResponse.BodyProcessor.asByteArray() |
Returns a
BodyProcessor which stores the response body as a
byte array. |
static HttpResponse.BodyProcessor<Void> |
HttpResponse.BodyProcessor.asByteArrayConsumer(Consumer<Optional<byte[]>> consumer) |
Returns a
BodyProcessor which provides the incoming body
data to the provided Consumer of Optional<byte[]> . |
static HttpResponse.BodyProcessor<Path> |
HttpResponse.BodyProcessor.asFile(Path file) |
Returns a
BodyProcessor which stores the response body in a
file opened with the given name. |
static HttpResponse.BodyProcessor<Path> |
HttpResponse.BodyProcessor.asFile(Path file,
OpenOption... openOptions) |
Returns a
BodyProcessor which stores the response body in a
file opened with the given options and name. |
static HttpResponse.BodyProcessor<String> |
HttpResponse.BodyProcessor.asString(Charset charset) |
Returns a body processor which stores the response body as a
String converted using the given Charset . |
static <U> HttpResponse.BodyProcessor<U> |
HttpResponse.BodyProcessor.discard(U value) |
Returns a response processor which discards the response body.
|
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-9b151-2