Modifier and Type | Method | Description |
---|---|---|
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromByteArray(byte[] buf) |
Returns a request body processor whose body is the given byte array.
|
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromByteArray(byte[] buf,
int offset,
int length) |
Returns a request body processor whose body is the content of the given byte
array of
length bytes starting from the specified
offset . |
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromByteArrays(Iterable<byte[]> iter) |
A request body processor that takes data from an
Iterable of byte arrays. |
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromFile(Path path) |
A request body processor that takes data from the contents of a File.
|
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromInputStream(Supplier<? extends InputStream> streamSupplier) |
A request body processor that reads its data from an
InputStream . |
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromString(String body) |
Returns a request body processor whose body is the given
String ,
converted using the UTF_8
character set. |
static HttpRequest.BodyProcessor |
HttpRequest.BodyProcessor.fromString(String s,
Charset charset) |
Returns a request body processor whose body is the given
String , converted
using the given character set. |
static HttpRequest.BodyProcessor |
HttpRequest.noBody() |
A request body handler which sends no request body.
|
Modifier and Type | Method | Description |
---|---|---|
abstract Optional<HttpRequest.BodyProcessor> |
HttpRequest.bodyProcessor() |
Returns an
Optional containing the HttpRequest.BodyProcessor
set on this request. |
Modifier and Type | Method | Description |
---|---|---|
abstract HttpRequest.Builder |
HttpRequest.Builder.DELETE(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to DELETE and sets its
request body processor to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.method(String method,
HttpRequest.BodyProcessor body) |
Sets the request method and request body of this builder to the
given values.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.POST(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to POST and sets its
request body processor to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.PUT(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to PUT and sets its
request body processor to the given value.
|
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-9b158-1