Class ServletWebSocketHandlerRegistration
java.lang.Object
org.springframework.web.socket.config.annotation.AbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,String>>
org.springframework.web.socket.config.annotation.ServletWebSocketHandlerRegistration
- All Implemented Interfaces:
WebSocketHandlerRegistration
public class ServletWebSocketHandlerRegistration
extends AbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,String>>
A helper class for configuring
WebSocketHandler
request handling
including SockJS fallback options.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSockJsServiceMapping
(MultiValueMap<HttpRequestHandler, String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern) protected void
addWebSocketHandlerMapping
(MultiValueMap<HttpRequestHandler, String> mappings, WebSocketHandler webSocketHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path) protected MultiValueMap<HttpRequestHandler,
String> Methods inherited from class org.springframework.web.socket.config.annotation.AbstractWebSocketHandlerRegistration
addHandler, addInterceptors, getHandshakeHandler, getInterceptors, getMappings, getSockJsServiceRegistration, setAllowedOriginPatterns, setAllowedOrigins, setHandshakeHandler, withSockJS
-
Constructor Details
-
ServletWebSocketHandlerRegistration
public ServletWebSocketHandlerRegistration()
-
-
Method Details
-
createMappings
- Specified by:
createMappings
in classAbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,
String>>
-
addSockJsServiceMapping
protected void addSockJsServiceMapping(MultiValueMap<HttpRequestHandler, String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern) - Specified by:
addSockJsServiceMapping
in classAbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,
String>>
-
addWebSocketHandlerMapping
protected void addWebSocketHandlerMapping(MultiValueMap<HttpRequestHandler, String> mappings, WebSocketHandler webSocketHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path) - Specified by:
addWebSocketHandlerMapping
in classAbstractWebSocketHandlerRegistration<MultiValueMap<HttpRequestHandler,
String>>
-