public class WebSocketServerSockJsSession extends AbstractSockJsSession
logger| Constructor and Description |
|---|
WebSocketServerSockJsSession(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(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(String sessionId, SockJsConfiguration config, WebSocketHandler handler)
public void initWebSocketSession(WebSocketSession session) throws Exception
Exceptionpublic boolean isActive()
AbstractSockJsSessionisActive in class AbstractSockJsSessionpublic void handleMessage(TextMessage message, WebSocketSession wsSession) throws Exception
Exceptionpublic void sendMessageInternal(String message) throws IOException
sendMessageInternal in class AbstractSockJsSessionIOExceptionprotected void writeFrameInternal(SockJsFrame frame) throws IOException
writeFrameInternal in class AbstractSockJsSessionIOExceptionprotected void disconnect(CloseStatus status) throws IOException
disconnect in class AbstractSockJsSessionIOException