final class HttpUpgradeConnectionProvider extends RemoteConnectionProvider
http://tools.ietf.org/html/rfc6455| Modifier and Type | Class and Description |
|---|---|
private class |
HttpUpgradeConnectionProvider.ConnectionAdaptorImpl |
private static class |
HttpUpgradeConnectionProvider.FlexBase64 |
(package private) class |
HttpUpgradeConnectionProvider.ProviderInterface |
private class |
HttpUpgradeConnectionProvider.RemotingHandshakeChecker |
HandleableCloseable.Key| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAGIC_NUMBER
Magic number used in the handshake.
|
private HttpUpgradeConnectionProvider.ProviderInterface |
providerInterface |
static java.lang.String |
SEC_JBOSS_REMOTING_ACCEPT |
static java.lang.String |
SEC_JBOSS_REMOTING_KEY |
static java.lang.String |
UPGRADE |
GLOBAL_POOL, LEAK_DEBUGGING, USE_POOLINGNO_PROVIDER_INTERFACES| Constructor and Description |
|---|
HttpUpgradeConnectionProvider(org.xnio.OptionMap optionMap,
ConnectionProviderContext connectionProviderContext) |
| Modifier and Type | Method and Description |
|---|---|
protected org.xnio.IoFuture<org.xnio.channels.ConnectedStreamChannel> |
createConnection(java.net.SocketAddress bindAddress,
java.net.SocketAddress dst,
org.xnio.OptionMap connectOptions,
org.xnio.ChannelListener<org.xnio.channels.ConnectedStreamChannel> openListener) |
protected java.lang.String |
createExpectedResponse(java.lang.String secKey) |
protected java.lang.String |
createSecKey() |
protected org.xnio.IoFuture<org.xnio.channels.ConnectedSslStreamChannel> |
createSslConnection(java.net.SocketAddress bindAddress,
java.net.InetSocketAddress destination,
org.xnio.OptionMap options,
org.xnio.ssl.XnioSsl xnioSsl,
org.xnio.ChannelListener<org.xnio.channels.ConnectedStreamChannel> openListener) |
HttpUpgradeConnectionProvider.ProviderInterface |
getProviderInterface()
Get the user data associated with this connection provider.
|
addConnectionHandler, closeAction, connect, getConnectionProviderContext, getExecutor, getXnioWorker, removeConnectionHandler, toStringaddCloseHandler, awaitClosed, awaitClosedUninterruptibly, checkOpen, close, closeAsync, closeComplete, closeFailed, finalize, isOpenclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsyncpublic static final java.lang.String MAGIC_NUMBER
public static final java.lang.String SEC_JBOSS_REMOTING_KEY
public static final java.lang.String SEC_JBOSS_REMOTING_ACCEPT
public static final java.lang.String UPGRADE
private final HttpUpgradeConnectionProvider.ProviderInterface providerInterface
HttpUpgradeConnectionProvider(org.xnio.OptionMap optionMap,
ConnectionProviderContext connectionProviderContext)
throws java.io.IOException
java.io.IOExceptionprotected org.xnio.IoFuture<org.xnio.channels.ConnectedStreamChannel> createConnection(java.net.SocketAddress bindAddress,
java.net.SocketAddress dst,
org.xnio.OptionMap connectOptions,
org.xnio.ChannelListener<org.xnio.channels.ConnectedStreamChannel> openListener)
createConnection in class RemoteConnectionProviderprotected org.xnio.IoFuture<org.xnio.channels.ConnectedSslStreamChannel> createSslConnection(java.net.SocketAddress bindAddress,
java.net.InetSocketAddress destination,
org.xnio.OptionMap options,
org.xnio.ssl.XnioSsl xnioSsl,
org.xnio.ChannelListener<org.xnio.channels.ConnectedStreamChannel> openListener)
createSslConnection in class RemoteConnectionProviderpublic HttpUpgradeConnectionProvider.ProviderInterface getProviderInterface()
ConnectionProvidernull.getProviderInterface in interface ConnectionProvidergetProviderInterface in class RemoteConnectionProvidernull)NetworkServerProviderprotected java.lang.String createSecKey()
protected java.lang.String createExpectedResponse(java.lang.String secKey)
throws java.io.IOException
java.io.IOException