类 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.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 DelegatingWebSocketConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
registerWebSocketHandlers(WebSocketHandlerRegistry registry)
void
setConfigurers(List<WebSocketConfigurer> configurers)
从类继承的方法 org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport
defaultSockJsTaskScheduler, webSocketHandlerMapping
构造器详细资料
DelegatingWebSocketConfiguration
public DelegatingWebSocketConfiguration()
方法详细资料
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebSocketConfigurer> configurers)
registerWebSocketHandlers
protected void registerWebSocketHandlers(WebSocketHandlerRegistry registry)