Package | Description |
---|---|
org.springframework.web.socket.sockjs.transport |
Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService . |
org.springframework.web.socket.sockjs.transport.handler |
TransportHandler
implementation classes as well as a concrete
SockJsService . |
org.springframework.web.socket.sockjs.transport.session |
SockJS specific implementations of
WebSocketSession . |
Modifier and Type | Method and Description |
---|---|
SockJsSession |
SockJsSessionFactory.createSession(String sessionId,
WebSocketHandler handler,
Map<String,Object> attributes)
Create a new SockJS session.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TransportHandler.checkSessionType(SockJsSession session)
Check whether the type of the given session matches the transport type
of this
TransportHandler where session id and the transport type
are extracted from the SockJS URL. |
void |
TransportHandler.handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler handler,
SockJsSession session)
Handle the given request and delegate messages to the provided
WebSocketHandler . |
Modifier and Type | Method and Description |
---|---|
boolean |
EventSourceTransportHandler.checkSessionType(SockJsSession session) |
boolean |
AbstractHttpReceivingTransportHandler.checkSessionType(SockJsSession session) |
boolean |
XhrPollingTransportHandler.checkSessionType(SockJsSession session) |
boolean |
HtmlFileTransportHandler.checkSessionType(SockJsSession session) |
boolean |
XhrStreamingTransportHandler.checkSessionType(SockJsSession session) |
boolean |
WebSocketTransportHandler.checkSessionType(SockJsSession session) |
void |
AbstractHttpSendingTransportHandler.handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
SockJsSession wsSession) |
void |
AbstractHttpReceivingTransportHandler.handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
SockJsSession wsSession) |
void |
WebSocketTransportHandler.handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
SockJsSession wsSession) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpSockJsSession
An abstract base class for use with HTTP transport SockJS sessions.
|
class |
AbstractSockJsSession
An abstract base class for SockJS sessions implementing
SockJsSession . |
class |
PollingSockJsSession
A SockJS session for use with polling HTTP transports.
|
class |
StreamingSockJsSession
A SockJS session for use with streaming HTTP transports.
|
class |
WebSocketServerSockJsSession
A SockJS session for use with the WebSocket transport.
|