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, setSession
event, event, exception, getFactory, getName, incident, read, read, timer, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSession, setSession
event, event, exception, getFactory, getName, incident, read, read, read, timer, timer
available, available, read, read
protected AbstractWebSocketHandler()
DefaultWebSocketSessionConfig
protected AbstractWebSocketHandler(URI requestUri)
requestUri
- request URI that will be used to set the Host header field
and the "Request-URI" of the GET methodDefaultWebSocketSessionConfig
protected AbstractWebSocketHandler(String name)
name
- the name for this handlerDefaultWebSocketSessionConfig
protected 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 methodDefaultWebSocketSessionConfig
protected 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 IHandler
getConfig
in interface IWebSocketHandler
getConfig
in class AbstractHandler
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.