| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| pack-priv final PlainHttpConnection | |
| pack-priv final InetSocketAddress | |
| pack-priv final Utils. |
| Access | Constructor and Description |
|---|---|
| protected | PlainTunnelingConnection(Origin originServer, InetSocketAddress addr, InetSocketAddress proxy, HttpClientImpl client, Utils.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ConnectionPool. | |
| pack-priv SocketChannel | |
| public void | close()
Implements abstract jdk. Implements java. Closes this connection. |
| pack-priv void | close(Throwable cause)
Implements abstract jdk. Closes this connection due to the given cause. |
| public CompletableFuture | connectAsync(Exchange<?> exchange)
Implements abstract jdk. Initiates the connect phase. |
| pack-priv boolean | connected()
Implements abstract jdk. Tells whether, or not, this connection is connected to its destination. |
| public CompletableFuture | finishConnect()
Implements abstract jdk. Finishes the connection phase. |
| pack-priv FlowTube | getConnectionFlow()
Implements abstract jdk. Returns the underlying connection flow, if applicable. |
| pack-priv boolean | isProxied()
Implements abstract jdk. Tells whether, or not, this connection is proxied. |
| pack-priv boolean | isSecure()
Implements abstract jdk. Tells whether, or not, this connection is secure ( over SSL ) |
| pack-priv boolean | |
| pack-priv InetSocketAddress | proxy()
Implements abstract jdk. Returns the address of the proxy used by this connection. |
| pack-priv HttpConnection. | publisher()
Implements abstract jdk. Returns the HTTP publisher associated with this connection. |
| connected | back to summary |
|---|---|
| private volatile boolean connected | |
| delegate | back to summary |
|---|---|
| pack-priv final PlainHttpConnection delegate | |
| proxyAddr | back to summary |
|---|---|
| pack-priv final InetSocketAddress proxyAddr | |
| proxyHeaders | back to summary |
|---|---|
| pack-priv final Utils. | |
| PlainTunnelingConnection | back to summary |
|---|---|
| protected PlainTunnelingConnection(Origin originServer, InetSocketAddress addr, InetSocketAddress proxy, HttpClientImpl client, Utils. | |
| cacheKey | back to summary |
|---|---|
| pack-priv ConnectionPool. Implements abstract jdk.
| |
| channel | back to summary |
|---|---|
| pack-priv SocketChannel channel() Implements abstract jdk.
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract jdk. Implements java. Doc from jdk. Closes this connection.
| |
| close | back to summary |
|---|---|
| pack-priv void close(Throwable cause) Implements abstract jdk. Doc from jdk. Closes this connection due to the given cause.
| |
| connectAsync | back to summary |
|---|---|
| public CompletableFuture Implements abstract jdk. Doc from jdk. Initiates the connect phase. Returns a CompletableFuture that completes when the underlying TCP connection has been established or an error occurs.
| |
| connected | back to summary |
|---|---|
| pack-priv boolean connected() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is connected to its destination.
| |
| finishConnect | back to summary |
|---|---|
| public CompletableFuture Implements abstract jdk. Doc from jdk. Finishes the connection phase. Returns a CompletableFuture that completes when any additional, type specific, setup has been done. Must be called after connectAsync. | |
| getConnectionFlow | back to summary |
|---|---|
| pack-priv FlowTube getConnectionFlow() Implements abstract jdk. Doc from jdk. Returns the underlying connection flow, if applicable.
| |
| isProxied | back to summary |
|---|---|
| pack-priv boolean isProxied() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is proxied. Returns true for tunnel connections, or clear connection to any host through proxy.
| |
| isSecure | back to summary |
|---|---|
| pack-priv boolean isSecure() Implements abstract jdk. Doc from jdk. Tells whether, or not, this connection is secure ( over SSL )
| |
| isTunnel | back to summary |
|---|---|
| pack-priv boolean isTunnel() Overrides jdk.
| |
| proxy | back to summary |
|---|---|
| pack-priv InetSocketAddress proxy() Implements abstract jdk. Doc from jdk. Returns the address of the proxy used by this connection.
Returns the proxy address for tunnel connections, or
clear connection to any host through proxy.
Returns
| |
| publisher | back to summary |
|---|---|
| pack-priv HttpConnection. Implements abstract jdk. Doc from jdk. Returns the HTTP publisher associated with this connection. May be null if invoked before connecting.
| |