public class WebSocketServerSockJsSession extends AbstractSockJsSession
logger| Constructor and Description |
|---|
WebSocketServerSockJsSession(java.lang.String sessionId,
SockJsConfiguration config,
WebSocketHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disconnect(CloseStatus status) |
void |
handleMessage(TextMessage message,
WebSocketSession wsSession) |
void |
initWebSocketSession(WebSocketSession session) |
boolean |
isActive()
Polling and Streaming sessions periodically close the current HTTP request and
wait for the next request to come through.
|
void |
sendMessageInternal(java.lang.String message) |
protected void |
writeFrameInternal(SockJsFrame frame) |
cancelHeartbeat, close, close, delegateConnectionClosed, delegateConnectionEstablished, delegateError, delegateMessages, getId, getPrincipal, getRemoteAddress, getRemoteHostName, getSockJsConfig, getTimeSinceLastActive, getUri, isClosed, isNew, isOpen, isSecure, scheduleHeartbeat, sendHeartbeat, sendMessage, setPrincipal, setRemoteAddress, setRemoteHostName, setUri, toString, tryCloseWithSockJsTransportError, updateLastActiveTime, writeFramepublic WebSocketServerSockJsSession(java.lang.String sessionId,
SockJsConfiguration config,
WebSocketHandler handler)
public void initWebSocketSession(WebSocketSession session) throws java.lang.Exception
java.lang.Exceptionpublic boolean isActive()
AbstractSockJsSessionisActive in class AbstractSockJsSessionpublic void handleMessage(TextMessage message, WebSocketSession wsSession) throws java.lang.Exception
java.lang.Exceptionpublic void sendMessageInternal(java.lang.String message)
throws java.io.IOException
sendMessageInternal in class AbstractSockJsSessionjava.io.IOExceptionprotected void writeFrameInternal(SockJsFrame frame) throws java.io.IOException
writeFrameInternal in class AbstractSockJsSessionjava.io.IOExceptionprotected void disconnect(CloseStatus status) throws java.io.IOException
disconnect in class AbstractSockJsSessionjava.io.IOException