Package | Description |
---|---|
org.springframework.web.socket.config.annotation |
Support for annotation-based WebSocket setup in configuration classes.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractWebSocketHandlerRegistration<M>
Base class for
WebSocketHandlerRegistrations that gathers all the configuration
options but allows subclasses to put together the actual HTTP request mappings. |
class |
ServletWebSocketHandlerRegistration
A helper class for configuring
WebSocketHandler request handling
including SockJS fallback options. |
Modifier and Type | Method and Description |
---|---|
WebSocketHandlerRegistration |
ServletWebSocketHandlerRegistry.addHandler(WebSocketHandler handler,
String... paths) |
WebSocketHandlerRegistration |
WebSocketHandlerRegistration.addHandler(WebSocketHandler handler,
String... paths)
Add more handlers that will share the same configuration (interceptors, SockJS
config, etc).
|
WebSocketHandlerRegistration |
AbstractWebSocketHandlerRegistration.addHandler(WebSocketHandler handler,
String... paths) |
WebSocketHandlerRegistration |
WebSocketHandlerRegistry.addHandler(WebSocketHandler webSocketHandler,
String... paths)
Configure a WebSocketHandler at the specified URL paths.
|
WebSocketHandlerRegistration |
WebSocketHandlerRegistration.addInterceptors(HandshakeInterceptor... interceptors)
Configure interceptors for the handshake request.
|
WebSocketHandlerRegistration |
AbstractWebSocketHandlerRegistration.addInterceptors(HandshakeInterceptor... interceptors) |
WebSocketHandlerRegistration |
WebSocketHandlerRegistration.setAllowedOriginPatterns(String... originPatterns)
Alternative to
setAllowedOrigins(String...) that supports more
flexible patterns for specifying the origins for which cross-origin
requests are allowed from a browser. |
WebSocketHandlerRegistration |
AbstractWebSocketHandlerRegistration.setAllowedOriginPatterns(String... allowedOriginPatterns) |
WebSocketHandlerRegistration |
WebSocketHandlerRegistration.setAllowedOrigins(String... origins)
Set the origins for which cross-origin requests are allowed from a browser.
|
WebSocketHandlerRegistration |
AbstractWebSocketHandlerRegistration.setAllowedOrigins(String... allowedOrigins) |
WebSocketHandlerRegistration |
WebSocketHandlerRegistration.setHandshakeHandler(HandshakeHandler handshakeHandler)
Configure the HandshakeHandler to use.
|
WebSocketHandlerRegistration |
AbstractWebSocketHandlerRegistration.setHandshakeHandler(HandshakeHandler handshakeHandler) |