Class ServletWebSocketHandlerRegistration
java.lang.Object
org.springframework.web.socket.config.annotation.AbstractWebSocketHandlerRegistration<org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,String>>
org.springframework.web.socket.config.annotation.ServletWebSocketHandlerRegistration
- All Implemented Interfaces:
WebSocketHandlerRegistration
public class ServletWebSocketHandlerRegistration
extends AbstractWebSocketHandlerRegistration<org.springframework.util.MultiValueMap<org.springframework.web.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
(org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler, String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern) protected void
addWebSocketHandlerMapping
(org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler, String> mappings, WebSocketHandler webSocketHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path) protected org.springframework.util.MultiValueMap<org.springframework.web.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
protected org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,String> createMappings()- Specified by:
createMappings
in classAbstractWebSocketHandlerRegistration<org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,
String>>
-
addSockJsServiceMapping
protected void addSockJsServiceMapping(org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler, String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern) - Specified by:
addSockJsServiceMapping
in classAbstractWebSocketHandlerRegistration<org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,
String>>
-
addWebSocketHandlerMapping
protected void addWebSocketHandlerMapping(org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler, String> mappings, WebSocketHandler webSocketHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path) - Specified by:
addWebSocketHandlerMapping
in classAbstractWebSocketHandlerRegistration<org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,
String>>
-