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