| Modifier and Type | Class and Description |
|---|---|
| private static class | HttpResponseImpl.
An auxiliary class used for RawChannel creation when creating a WebSocket. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| private final String | |
| pack-priv final HttpHeaders | |
| pack-priv final HttpRequest | |
| pack-priv final HttpResponse | |
| pack-priv final HttpResponseImpl. | |
| pack-priv final int | |
| pack-priv final SSLSession | |
| pack-priv final URI | |
| pack-priv final HttpClient. |
| Access | Constructor and Description |
|---|---|
| public | HttpResponseImpl(HttpRequest initialRequest, Response response, HttpResponse<T> previousResponse, T body, Exchange<T> exch)
|
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public void | closeRawChannel()
Implements jdk. Closes the RawChannel that may have been used for WebSocket protocol. |
| private static Optional | |
| public Optional | connectionLabel()
Overrides default java. Returns if present, a label identifying the connection on which the response was received. |
| public HttpHeaders | |
| public Optional | previousResponse()
Implements java. Returns an |
| public RawChannel | Returns: a RawChannel that may be used for WebSocket protocol.Implements jdk. Returns a RawChannel that may be used for WebSocket protocol. |
| public HttpRequest | request()
Implements java. Returns the |
| public Optional | sslSession()
Implements java. Returns an |
| public int | statusCode()
Implements java. Returns the status code for this response. |
| public String | |
| public URI | uri()
Implements java. Returns the |
| public HttpClient. | version()
Implements java. Returns the HTTP protocol version that was used for this response. |
| body | back to summary |
|---|---|
| pack-priv final T body | |
| connectionLabel | back to summary |
|---|---|
| private final String connectionLabel | |
| headers | back to summary |
|---|---|
| pack-priv final HttpHeaders headers | |
| initialRequest | back to summary |
|---|---|
| pack-priv final HttpRequest initialRequest | |
| previousResponse | back to summary |
|---|---|
| pack-priv final HttpResponse<T> previousResponse | |
| rawChannelProvider | back to summary |
|---|---|
| pack-priv final HttpResponseImpl. | |
| responseCode | back to summary |
|---|---|
| pack-priv final int responseCode | |
| sslSession | back to summary |
|---|---|
| pack-priv final SSLSession sslSession | |
| uri | back to summary |
|---|---|
| pack-priv final URI uri | |
| version | back to summary |
|---|---|
| pack-priv final HttpClient. | |
| HttpResponseImpl | back to summary |
|---|---|
| public HttpResponseImpl(HttpRequest initialRequest, Response response, HttpResponse<T> previousResponse, T body, Exchange<T> exch) | |
| body | back to summary |
|---|---|
| public T body() Implements java. Doc from java. Returns the body. Depending on the type of If this
| |
| closeRawChannel | back to summary |
|---|---|
| public void closeRawChannel() throws IOException Implements jdk. Closes the RawChannel that may have been used for WebSocket protocol. API Note This method should be called to close the connection
if an exception occurs during the websocket handshake, in cases where
| |
| connectionLabel | back to summary |
|---|---|
| private static Optional | |
| connectionLabel | back to summary |
|---|---|
| public Optional Overrides default java. Doc from java. Returns if present, a label identifying the connection on which the response was received.
The format of the string is opaque, but the value is fixed and unique
for any connection in the scope of the associated
| |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements java. Doc from java. Returns the received response headers.
| |
| previousResponse | back to summary |
|---|---|
| public Optional Implements java. Doc from java. Returns an
| |
| rawChannel | back to summary |
|---|---|
| public RawChannel rawChannel() throws IOException Implements jdk. Returns a RawChannel that may be used for WebSocket protocol. Implementation Note This implementation does not support RawChannel over HTTP/2 connections.
| |
| request | back to summary |
|---|---|
| public HttpRequest request() Implements java. Doc from java. Returns the The returned
| |
| sslSession | back to summary |
|---|---|
| public Optional Implements java. Doc from java. Returns an
| |
| statusCode | back to summary |
|---|---|
| public int statusCode() Implements java. Doc from java. Returns the status code for this response.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| uri | back to summary |
|---|---|
| public URI uri() Implements java. Doc from java. Returns the
| |
| version | back to summary |
|---|---|
| public HttpClient. Implements java. Doc from java. Returns the HTTP protocol version that was used for this response.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpConnection | |
| private final Exchange | |
| private RawChannel | |
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static HttpConnection | |
| pack-priv static HttpResponseImpl. | |
| private ExchangeImpl | |
| public RawChannel | |
| private RawChannel |
| connection | back to summary |
|---|---|
| private final HttpConnection connection | |
| exchange | back to summary |
|---|---|
| private final Exchange<?> exchange | |
| rawchan | back to summary |
|---|---|
| private RawChannel rawchan | |
| stateLock | back to summary |
|---|---|
| private final ReentrantLock stateLock | |
| RawChannelProvider | back to summary |
|---|---|
| pack-priv RawChannelProvider(HttpConnection conn, Exchange<?> exch) | |
| closeRawChannel | back to summary |
|---|---|
| public void closeRawChannel() throws IOException Implements jdk. | |
| connection | back to summary |
|---|---|
| private static HttpConnection connection(Response resp, Exchange<?> exch) | |
| create | back to summary |
|---|---|
| pack-priv static HttpResponseImpl. | |
| exchangeImpl | back to summary |
|---|---|
| private ExchangeImpl | |
| rawChannel | back to summary |
|---|---|
| public RawChannel rawChannel() Implements jdk.
| |
| rawChannel0 | back to summary |
|---|---|
| private RawChannel rawChannel0() | |