public class StreamingSockJsSession extends AbstractHttpSockJsSession
logger| Constructor and Description |
|---|
StreamingSockJsSession(String sessionId,
SockJsServiceConfig config,
WebSocketHandler wsHandler,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushCache()
Only called if the connection is currently active
|
void |
handleInitialRequest(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
SockJsFrameFormat frameFormat) |
protected void |
resetRequest() |
protected void |
writeFrameInternal(SockJsFrame frame) |
afterRequestUpdated, disconnect, getAcceptedProtocol, getExtensions, getHandshakeHeaders, getLocalAddress, getMessageCache, getPrincipal, getRemoteAddress, getRequest, getResponse, getUri, isActive, sendMessageInternal, setAcceptedProtocol, startLongPollingRequest, writePreludecancelHeartbeat, close, close, delegateConnectionClosed, delegateConnectionEstablished, delegateError, delegateMessages, getHandshakeAttributes, getId, getSockJsServiceConfig, getTimeSinceLastActive, isClosed, isNew, isOpen, scheduleHeartbeat, sendHeartbeat, sendMessage, toString, tryCloseWithSockJsTransportError, updateLastActiveTime, writeFramepublic StreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String,Object> attributes)
public void handleInitialRequest(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
SockJsFrameFormat frameFormat)
throws SockJsException
handleInitialRequest in class AbstractHttpSockJsSessionSockJsExceptionprotected void flushCache()
throws SockJsTransportFailureException
AbstractHttpSockJsSessionflushCache in class AbstractHttpSockJsSessionSockJsTransportFailureExceptionprotected void resetRequest()
resetRequest in class AbstractHttpSockJsSessionprotected void writeFrameInternal(SockJsFrame frame) throws IOException
writeFrameInternal in class AbstractHttpSockJsSessionIOException