类 ServletWebSocketHandlerRegistration
- java.lang.Object
- org.springframework.web.socket.config.annotation.AbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,String>>
- org.springframework.web.socket.config.annotation.ServletWebSocketHandlerRegistration
- 所有已实现的接口:
WebSocketHandlerRegistration
public class ServletWebSocketHandlerRegistration extends AbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,String>>
A helper class for configuringWebSocketHandler
request handling including SockJS fallback options.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 ServletWebSocketHandlerRegistration(TaskScheduler sockJsTaskScheduler)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
addSockJsServiceMapping(MultiValueMap<HttpRequestHandler,String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)
protected void
addWebSocketHandlerMapping(MultiValueMap<HttpRequestHandler,String> mappings, WebSocketHandler wsHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path)
protected MultiValueMap<HttpRequestHandler,String>
createMappings()
从类继承的方法 org.springframework.web.socket.config.annotation.AbstractWebSocketHandlerRegistration
addHandler, addInterceptors, getHandshakeHandler, getInterceptors, getMappings, setAllowedOrigins, setHandshakeHandler, withSockJS
构造器详细资料
ServletWebSocketHandlerRegistration
public ServletWebSocketHandlerRegistration(TaskScheduler sockJsTaskScheduler)
方法详细资料
createMappings
protected MultiValueMap<HttpRequestHandler,String> createMappings()
addSockJsServiceMapping
protected void addSockJsServiceMapping(MultiValueMap<HttpRequestHandler,String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)
addWebSocketHandlerMapping
protected void addWebSocketHandlerMapping(MultiValueMap<HttpRequestHandler,String> mappings, WebSocketHandler wsHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path)