Class DelegatingWebSocketConfiguration
- java.lang.Object
- org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport
- org.springframework.web.socket.config.annotation.DelegatingWebSocketConfiguration
@Configuration public class DelegatingWebSocketConfiguration extends WebSocketConfigurationSupport
A variation ofWebSocketConfigurationSupport
that detects implementations ofWebSocketConfigurer
in Spring configuration and invokes them in order to configure WebSocket request handling.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description DelegatingWebSocketConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
registerWebSocketHandlers(WebSocketHandlerRegistry registry)
void
setConfigurers(List<WebSocketConfigurer> configurers)
Methods inherited from class org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport
defaultSockJsTaskScheduler, webSocketHandlerMapping
Constructor Detail
DelegatingWebSocketConfiguration
public DelegatingWebSocketConfiguration()
Method Detail
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebSocketConfigurer> configurers)
registerWebSocketHandlers
protected void registerWebSocketHandlers(WebSocketHandlerRegistry registry)
- Overrides:
registerWebSocketHandlers
in classWebSocketConfigurationSupport