接口的使用
org.springframework.web.socket.sockjs.SockJsService
使用SockJsService的程序包 程序包 说明 org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsService
implementation.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.config.annotation中SockJsService的使用
返回SockJsService的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 protected SockJsService
SockJsServiceRegistration. getSockJsService()
参数类型为SockJsService的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 protected abstract void
AbstractWebSocketHandlerRegistration. addSockJsServiceMapping(M mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)
protected void
ServletWebSocketHandlerRegistration. addSockJsServiceMapping(MultiValueMap<HttpRequestHandler,String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)
org.springframework.web.socket.sockjs.support中SockJsService的使用
实现SockJsService的org.springframework.web.socket.sockjs.support中的类 修饰符和类型 类 说明 class
AbstractSockJsService
An abstract base class forSockJsService
implementations that provides SockJS path resolution and handling of static SockJS requests (e.g.返回SockJsService的org.springframework.web.socket.sockjs.support中的方法 修饰符和类型 方法 说明 SockJsService
SockJsHttpRequestHandler. getSockJsService()
Return theSockJsService
.参数类型为SockJsService的org.springframework.web.socket.sockjs.support中的构造器 构造器 说明 SockJsHttpRequestHandler(SockJsService sockJsService, WebSocketHandler webSocketHandler)
Create a new SockJsHttpRequestHandler.org.springframework.web.socket.sockjs.transport中SockJsService的使用
实现SockJsService的org.springframework.web.socket.sockjs.transport中的类 修饰符和类型 类 说明 class
TransportHandlingSockJsService
A basic implementation ofSockJsService
with support for SPI-based transport handling and session management.org.springframework.web.socket.sockjs.transport.handler中SockJsService的使用
实现SockJsService的org.springframework.web.socket.sockjs.transport.handler中的类 修饰符和类型 类 说明 class
DefaultSockJsService
A default implementation ofSockJsService
with all defaultTransportHandler
implementations pre-registered.