Uses of Interface
org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration
Packages that use WebSocketHandlerRegistration
Package
Description
Support for annotation-based WebSocket setup in configuration classes.
- 
Uses of WebSocketHandlerRegistration in org.springframework.web.socket.config.annotationClasses in org.springframework.web.socket.config.annotation that implement WebSocketHandlerRegistrationModifier and TypeClassDescriptionclassBase class forWebSocketHandlerRegistrationsthat gathers all the configuration options but allows subclasses to put together the actual HTTP request mappings.classA helper class for configuringWebSocketHandlerrequest handling including SockJS fallback options.Methods in org.springframework.web.socket.config.annotation that return WebSocketHandlerRegistrationModifier 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(@Nullable HandshakeHandler handshakeHandler) WebSocketHandlerRegistration.setHandshakeHandler(HandshakeHandler handshakeHandler) Configure the HandshakeHandler to use.