WebSocket
abruptly.BodyProcessor
considering the given response status
code and headers.BodyHandler<byte[]>
that returns a
BodyProcessor
<byte[]
> obtained
from BodyProcessor.asByteArray()
.BodyProcessor
which stores the response body as a
byte array.BodyHandler<Void>
that returns a
BodyProcessor
<Void>
obtained from
BodyProcessor.asByteArrayConsumer(Consumer)
.BodyProcessor
which provides the incoming body
data to the provided Consumer of Optional<byte[]>
.BodyHandler<Path>
that returns a
BodyProcessor
<Path>
obtained from
BodyProcessor.asFile(Path)
.BodyProcessor
which stores the response body in a
file opened with the given name.BodyHandler<Path>
that returns a
BodyProcessor
<Path>
obtained from
BodyProcessor.asFile(Path,OpenOption...)
.BodyProcessor
which stores the response body in a
file opened with the given options and name.BodyHandler<Path>
that returns a
BodyProcessor
<Path
>
where the download directory is specified, but the filename is
obtained from the Content-Disposition
response header.BodyHandler<String>
that returns a
BodyProcessor
<String>
obtained from
BodyProcessor.asString(Charset)
.BodyHandler<String>
that returns a
BodyProcessor
<String>
obtained from
BodyProcessor.asString(Charset)
.
String
converted using the given Charset
.Optional
containing the Authenticator
set on
this client.Optional
containing the HttpRequest.BodyProcessor
set on this request.HttpClient
built from the current state of this
builder.HttpRequest
.WebSocket
.1006
), is
designated for use in applications expecting a status code to indicate
that the connection was closed abnormally, e.g., without sending or
receiving a Close message.CompletableFuture
<U>
which completes when the aggregate result object itself is available.Optional
which contains this client's CookieManager
.Builder
based on current
state.Executor
set on this client.expect continue
setting.HttpRequest
that was sent on the wire for the
exchange ( may, or may not, be the same as the initial request ).Optional
containing the first value of the
given named (and possibly multi-valued) header.OptionalLong
containing the first value of the
named header field.length
bytes starting from the specified
offset
.Iterable
of byte arrays.InputStream
.String
,
converted using the UTF_8
character set.String
, converted
using the given character set.CompletionStage
which when completed will return the
response body object.WebSocket
.HttpRequest
s.HttpClient
s.HttpRequest
s.HttpRequest
.ByteBuffer
s suitable for sending as request bodies.WebSocket
is closed.Map
containing the result of a HTTP/2 request and multi-response.1000
),
indicating normal closure, meaning that the purpose for which the
connection was established has been fulfilled.HttpClient
builder.HttpRequest
builder.HttpRequest
builder.WebSocket
instances connected to the given
URI and receiving events and messages with the given Listener
.Listener
that it is connected to the provided
WebSocket
.Optional
containing the ProxySelector
for this client.ProxySelector
for this client.HttpRequest
that initiated the exchange.n
more messages to be received by the Listener
.ByteBuffer
.
CharSequence
.CharSequence
.SSLContext
, if one was set on this client.SSLContext
.Optional
containing the SSLParameters
set on
this client.SSLParameters
in effect for this
response.SSLParameters
.URI
.URI
that the response was received from.HttpRequest
's request URI
.HttpRequest
.HttpClient.version()
setting for this
request.WebSocket.Listener
in cases where a partial
message may be received.WebSocket
instances.WebSocket
. 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, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b149-1