APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http

pack-priv Class AsyncSSLConnection

extends AbstractAsyncSSLConnection
Class Inheritance
Imports
java.net.InetSocketAddress, java.nio.channels.SocketChannel, java.util.concurrent.CompletableFuture, java.util.function.Function, jdk.internal.net.http.common.MinimalFuture, .SSLTube, .Utils

Asynchronous version of SSLConnection.

Field Summary

Modifier and TypeField and Description
private volatile SSLTube
pack-priv final PlainHttpConnection
pack-priv final HttpConnection.PlainHttpPublisher
Inherited from jdk.internal.net.http.AbstractAsyncSSLConnection:
enginesslParameters

Constructor Summary

AccessConstructor and Description
pack-priv
AsyncSSLConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String[] alpn, String label)

Method Summary

Modifier and TypeMethod and Description
pack-priv ConnectionPool.CacheKey
pack-priv SocketChannel
public void
close()

Implements abstract jdk.internal.net.http.HttpConnection.close.

Implements java.io.Closeable.close.

Closes this connection.

pack-priv void
close(Throwable cause)

Implements abstract jdk.internal.net.http.HttpConnection.close.

Closes this connection due to the given cause.

public CompletableFuture<Void>
connectAsync(Exchange<?> exchange)

Implements abstract jdk.internal.net.http.HttpConnection.connectAsync.

Initiates the connect phase.

pack-priv boolean
connected()

Implements abstract jdk.internal.net.http.HttpConnection.connected.

Tells whether, or not, this connection is connected to its destination.

public CompletableFuture<Void>
finishConnect()

Implements abstract jdk.internal.net.http.HttpConnection.finishConnect.

Finishes the connection phase.

pack-priv SSLTube
getConnectionFlow()

Implements abstract jdk.internal.net.http.AbstractAsyncSSLConnection.getConnectionFlow.

Returns the underlying connection flow, if applicable.

pack-priv boolean
isProxied()

Implements abstract jdk.internal.net.http.HttpConnection.isProxied.

Tells whether, or not, this connection is proxied.

pack-priv InetSocketAddress
proxy()

Implements abstract jdk.internal.net.http.HttpConnection.proxy.

Returns the address of the proxy used by this connection.

pack-priv HttpConnection.HttpPublisher
publisher()

Implements abstract jdk.internal.net.http.HttpConnection.publisher.

Returns the HTTP publisher associated with this connection.

Inherited from jdk.internal.net.http.AbstractAsyncSSLConnection:
getALPNgetEnginegetSNIServerNamesisSecure

Field Detail

flowback to summary
private volatile SSLTube flow
plainConnectionback to summary
pack-priv final PlainHttpConnection plainConnection
writePublisherback to summary
pack-priv final HttpConnection.PlainHttpPublisher writePublisher

Constructor Detail

AsyncSSLConnectionback to summary
pack-priv AsyncSSLConnection(Origin originServer, InetSocketAddress addr, HttpClientImpl client, String[] alpn, String label)

Method Detail

cacheKeyback to summary
pack-priv ConnectionPool.CacheKey cacheKey()

Implements abstract jdk.internal.net.http.HttpConnection.cacheKey.

Annotations
@Override
channelback to summary
pack-priv SocketChannel channel()

Implements abstract jdk.internal.net.http.HttpConnection.channel.

Annotations
@Override
closeback to summary
public void close()

Implements abstract jdk.internal.net.http.HttpConnection.close.

Implements java.io.Closeable.close.

Doc from jdk.internal.net.http.HttpConnection.close.

Closes this connection.

Annotations
@Override
closeback to summary
pack-priv void close(Throwable cause)

Implements abstract jdk.internal.net.http.HttpConnection.close.

Doc from jdk.internal.net.http.HttpConnection.close.

Closes this connection due to the given cause.

Annotations
@Override
connectAsyncback to summary
public CompletableFuture<Void> connectAsync(Exchange<?> exchange)

Implements abstract jdk.internal.net.http.HttpConnection.connectAsync.

Doc from jdk.internal.net.http.HttpConnection.connectAsync.

Initiates the connect phase. Returns a CompletableFuture that completes when the underlying TCP connection has been established or an error occurs.

Annotations
@Override
connectedback to summary
pack-priv boolean connected()

Implements abstract jdk.internal.net.http.HttpConnection.connected.

Doc from jdk.internal.net.http.HttpConnection.connected.

Tells whether, or not, this connection is connected to its destination.

Annotations
@Override
finishConnectback to summary
public CompletableFuture<Void> finishConnect()

Implements abstract jdk.internal.net.http.HttpConnection.finishConnect.

Doc from jdk.internal.net.http.HttpConnection.finishConnect.

Finishes the connection phase. Returns a CompletableFuture that completes when any additional, type specific, setup has been done. Must be called after connectAsync.

Annotations
@Override
getConnectionFlowback to summary
pack-priv SSLTube getConnectionFlow()

Implements abstract jdk.internal.net.http.AbstractAsyncSSLConnection.getConnectionFlow.

Doc from jdk.internal.net.http.HttpConnection.getConnectionFlow.

Returns the underlying connection flow, if applicable.

Annotations
@Override
isProxiedback to summary
pack-priv boolean isProxied()

Implements abstract jdk.internal.net.http.HttpConnection.isProxied.

Doc from jdk.internal.net.http.HttpConnection.isProxied.

Tells whether, or not, this connection is proxied. Returns true for tunnel connections, or clear connection to any host through proxy.

Annotations
@Override
proxyback to summary
pack-priv InetSocketAddress proxy()

Implements abstract jdk.internal.net.http.HttpConnection.proxy.

Doc from jdk.internal.net.http.HttpConnection.proxy.

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 null otherwise.

Annotations
@Override
publisherback to summary
pack-priv HttpConnection.HttpPublisher publisher()

Implements abstract jdk.internal.net.http.HttpConnection.publisher.

Doc from jdk.internal.net.http.HttpConnection.publisher.

Returns the HTTP publisher associated with this connection. May be null if invoked before connecting.

Annotations
@Override