public class ConnectionManager extends RemoteConnectionInfoManagerFactory
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionManager.GracefulCloseEvent
FilterChainEvent to gracefully complete the request-response
processing when Connection is getting closed by the remote host. |
static class |
ConnectionManager.RemoteConnectionContext |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,WebSocketConnectionGroup> |
connectionGroups |
static org.glassfish.grizzly.ssl.SSLContextConfigurator |
DEFAULT_CONFIG |
ReferenceCountedObject<ScheduledExecutorService> |
DEFAULT_SCHEDULER
The default scheduler which should be used when the application does not
provide one.
|
static String |
USER_AGENT |
Constructor and Description |
---|
ConnectionManager(OperationMessageListener messageListener,
ConnectionManagerConfig config) |
Modifier and Type | Method and Description |
---|---|
static String |
computeBasicAuthentication(String principal,
GuardedString password) |
ClientRemoteConnectorInfoManager |
connect(RemoteWSFrameworkConnectionInfo info) |
protected org.glassfish.grizzly.ssl.SSLContextConfigurator |
createSSLContextConfigurator(ConnectionManagerConfig clientConfig) |
protected void |
doClose() |
protected void |
init() |
protected org.glassfish.grizzly.filterchain.FilterChain |
initializeFilterChain(ConnectionManagerConfig clientConfig) |
protected org.glassfish.grizzly.nio.transport.TCPNIOTransport |
initializeNIOTransport(ConnectionManagerConfig connectionManagerConfig) |
addCloseListener, close, getManagerConfig, getMessageListener, invokeCloseListener, isRunning, removeCloseListener
public static final org.glassfish.grizzly.ssl.SSLContextConfigurator DEFAULT_CONFIG
public static final String USER_AGENT
public final ReferenceCountedObject<ScheduledExecutorService> DEFAULT_SCHEDULER
protected final ConcurrentMap<String,WebSocketConnectionGroup> connectionGroups
public ConnectionManager(OperationMessageListener messageListener, ConnectionManagerConfig config) throws Exception
Exception
protected void doClose()
doClose
in class RemoteConnectionInfoManagerFactory
public ClientRemoteConnectorInfoManager connect(RemoteWSFrameworkConnectionInfo info)
connect
in class RemoteConnectionInfoManagerFactory
protected org.glassfish.grizzly.nio.transport.TCPNIOTransport initializeNIOTransport(ConnectionManagerConfig connectionManagerConfig)
protected org.glassfish.grizzly.filterchain.FilterChain initializeFilterChain(ConnectionManagerConfig clientConfig)
protected org.glassfish.grizzly.ssl.SSLContextConfigurator createSSLContextConfigurator(ConnectionManagerConfig clientConfig)
public static String computeBasicAuthentication(String principal, GuardedString password) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2018–2025. All rights reserved.