public abstract class AbstractWebSocketHandler extends AbstractStreamHandler implements IWebSocketHandler
IWebSocketHandler interface.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractWebSocketHandler()
Constructs an unnamed Web Socket handler for server sessions with the default
configuration.
|
protected |
AbstractWebSocketHandler(IWebSocketSessionConfig config)
Constructs an unnamed Web Socket handler with the specified configuration.
|
protected |
AbstractWebSocketHandler(String name)
Constructs a named Web Socket handler for server sessions with the default
configuration.
|
protected |
AbstractWebSocketHandler(String name,
IWebSocketSessionConfig config)
Constructs a named Web Socket handler with the specified configuration.
|
protected |
AbstractWebSocketHandler(String name,
URI requestUri)
Constructs a named Web Socket handler for client sessions with the default
configuration.
|
protected |
AbstractWebSocketHandler(URI requestUri)
Constructs an unnamed Web Socket handler for client sessions with the default
configuration.
|
| Modifier and Type | Method and Description |
|---|---|
IWebSocketSessionConfig |
getConfig()
Returns the Web Socket configuration object that will be used to configure
the behavior of the associated session.
|
available, available, getSession, setSessionevent, event, exception, getFactory, getName, incident, read, read, timer, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSession, setSessionevent, event, exception, getFactory, getName, incident, read, read, read, timer, timeravailable, available, read, readprotected AbstractWebSocketHandler()
DefaultWebSocketSessionConfigprotected AbstractWebSocketHandler(URI requestUri)
requestUri - request URI that will be used to set the Host header field
and the "Request-URI" of the GET methodDefaultWebSocketSessionConfigprotected AbstractWebSocketHandler(String name)
name - the name for this handlerDefaultWebSocketSessionConfigprotected AbstractWebSocketHandler(String name, URI requestUri)
name - the name for this handlerrequestUri - request URI that will be used to set the Host header field
and the "Request-URI" of the GET methodDefaultWebSocketSessionConfigprotected AbstractWebSocketHandler(IWebSocketSessionConfig config)
config - the Web Socket session configurationprotected AbstractWebSocketHandler(String name, IWebSocketSessionConfig config)
name - the name for this handlerconfig - the Web Socket session configurationpublic IWebSocketSessionConfig getConfig()
getConfig in interface IHandlergetConfig in interface IWebSocketHandlergetConfig in class AbstractHandlerISessionConfigCopyright © 2017–2022 SNF4J.ORG. All rights reserved.