public class EvwWsEndpoint
extends javax.websocket.Endpoint
Modifier and Type | Class and Description |
---|---|
class |
EvwWsEndpoint.TvMessageHandler
Tag-Value WebSocket message handler.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
debugging
Debugging flag
|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
protected javax.websocket.server.ServerEndpointConfig |
evwConfig
Configuration for this endpoint
|
protected javax.websocket.Session |
evwSession
Current session at this endpoint
|
protected static int |
instanceNumber
EvwWsEndpoint instance number
|
protected Logger |
log
Logger
|
protected boolean |
showConnections
Show client connections flag
|
protected static java.lang.String |
TAG_RQST_CTRL |
protected static java.lang.String |
TAG_RQST_RSRC |
protected static java.lang.String |
TAG_RQST_SRVR_STOP |
protected static java.lang.String |
TAG_SRVC_INFO |
protected static java.lang.String |
TAG_SRVR_INFO |
protected static java.lang.String |
TAG_TIMESTAMP |
protected boolean |
tracingIo
IoTrace flag
|
static java.lang.String |
VERSION
Class version
|
Constructor and Description |
---|
EvwWsEndpoint()
Create a new EvwWsEndpoint instance
|
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintWriter out,
java.lang.String indent)
Dump the server state to a PrintWriter
|
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason)
Intercept session closure.
|
void |
onError(javax.websocket.Session session,
java.lang.Throwable thr)
Intercept error condition.
|
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig endpointConfig)
Intercept the creation of a new session.
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
protected static final java.lang.String TAG_RQST_CTRL
protected static final java.lang.String TAG_RQST_RSRC
protected static final java.lang.String TAG_RQST_SRVR_STOP
protected static final java.lang.String TAG_SRVC_INFO
protected static final java.lang.String TAG_SRVR_INFO
protected static final java.lang.String TAG_TIMESTAMP
protected static int instanceNumber
protected javax.websocket.Session evwSession
protected javax.websocket.server.ServerEndpointConfig evwConfig
protected Logger log
protected boolean showConnections
protected boolean tracingIo
protected boolean debugging
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig endpointConfig)
onOpen
in class javax.websocket.Endpoint
session
- endpointConfig
- public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
onClose
in class javax.websocket.Endpoint
session
- closeReason
- public void onError(javax.websocket.Session session, java.lang.Throwable thr)
onError
in class javax.websocket.Endpoint
session
- thr
- public void dump(java.io.PrintWriter out, java.lang.String indent)
out
- The device to dump toindent
- Prefix for dumped information