接口的使用
org.springframework.web.socket.sockjs.transport.SockJsSession
使用SockJsSession的程序包 程序包 说明 org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandler
implementations for processing incoming requests, theirsession
counterparts for sending messages over the various transports, andDefaultSockJsService
.org.springframework.web.socket.sockjs.transport.handler TransportHandler
implementation classes as well as a concreteSockJsService
.org.springframework.web.socket.sockjs.transport.session SockJS specific implementations ofWebSocketSession
.org.springframework.web.socket.sockjs.transport中SockJsSession的使用
返回SockJsSession的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 SockJsSession
SockJsSessionFactory. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)
Create a new SockJS session.参数类型为SockJsSession的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 boolean
TransportHandler. checkSessionType(SockJsSession session)
Check whether the type of the given session matches the transport type of thisTransportHandler
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 providedWebSocketHandler
.org.springframework.web.socket.sockjs.transport.handler中SockJsSession的使用
参数类型为SockJsSession的org.springframework.web.socket.sockjs.transport.handler中的方法 修饰符和类型 方法 说明 boolean
AbstractHttpReceivingTransportHandler. checkSessionType(SockJsSession session)
boolean
EventSourceTransportHandler. checkSessionType(SockJsSession session)
boolean
HtmlFileTransportHandler. checkSessionType(SockJsSession session)
boolean
WebSocketTransportHandler. checkSessionType(SockJsSession session)
boolean
XhrPollingTransportHandler. checkSessionType(SockJsSession session)
boolean
XhrStreamingTransportHandler. checkSessionType(SockJsSession session)
void
AbstractHttpReceivingTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)
void
AbstractHttpSendingTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)
void
WebSocketTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)
org.springframework.web.socket.sockjs.transport.session中SockJsSession的使用
实现SockJsSession的org.springframework.web.socket.sockjs.transport.session中的类 修饰符和类型 类 说明 class
AbstractHttpSockJsSession
An abstract base class for use with HTTP transport SockJS sessions.class
AbstractSockJsSession
An abstract base class for SockJS sessions implementingSockJsSession
.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.