Java 类org.springframework.web.socket.config.annotation.ServletWebSocketHandlerRegistry 实例源码

项目:wamp2spring    文件:WampConfiguration.java   
private ServletWebSocketHandlerRegistry initHandlerRegistry() {
    if (this.handlerRegistry == null) {
        this.handlerRegistry = new ServletWebSocketHandlerRegistry();
        registerWebSocketHandlers(this.handlerRegistry);
    }
    return this.handlerRegistry;
}
项目:wamp2spring    文件:WampConfiguration.java   
@Bean
public HandlerMapping webSocketHandlerMapping() {
    ServletWebSocketHandlerRegistry registry = initHandlerRegistry();
    return registry.getHandlerMapping();
}
项目:steve-plugsurfing    文件:WebSocketConfiguration.java   
@Bean
public HandlerMapping webSocketHandlerMapping() {
    ServletWebSocketHandlerRegistry registry = new ServletWebSocketHandlerRegistry(null);
    registerWebSocketHandlers(registry);
    return registry.getHandlerMapping();
}
项目:steve    文件:WebSocketConfiguration.java   
@Bean
public HandlerMapping webSocketHandlerMapping() {
    ServletWebSocketHandlerRegistry registry = new ServletWebSocketHandlerRegistry(null);
    registerWebSocketHandlers(registry);
    return registry.getHandlerMapping();
}