Java Code Examples for org.springframework.web.socket.handler.PerConnectionWebSocketHandler

The following examples show how to use org.springframework.web.socket.handler.PerConnectionWebSocketHandler. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: data-highway   Source File: WebSocketTestConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(WebSocketHandlerTest.class);
}
 
Example 2
Source Project: data-highway   Source File: WebSocketTestConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(WebSocketHandlerTest.class);
}
 
Example 3
Source Project: data-highway   Source File: WebSocketConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(OfframpWebSocketHandler.class);
}
 
Example 4
@Bean
public WebSocketHandler snakeWebSocketHandler() {
    return new PerConnectionWebSocketHandler(SnakeWebSocketHandler.class);
}
 
Example 5
Source Project: MyBlog   Source File: BootStrap.java    License: Apache License 2.0 4 votes vote down vote up
public WebSocketHandler perEchoWebSocketHandler() {
    return new PerConnectionWebSocketHandler(ChatWebSocketHandler.class);
}
 
Example 6
Source Project: cloudterm   Source File: WebSocketConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandler terminalSocket() {
    WebSocketHandler webSocketHandler = new PerConnectionWebSocketHandler(TerminalSocket.class);
    return webSocketHandler;
}
 
Example 7
Source Project: example-restful-project   Source File: WebSocketConfig.java    License: MIT License 4 votes vote down vote up
/**
 * @return one teapot handler bean per WebSocket connection.
 */
@Bean
public WebSocketHandler teapotHandler() {
    return new PerConnectionWebSocketHandler(TeapotHandler.class);
}
 
Example 8
Source Project: example-restful-project   Source File: WebSocketConfig.java    License: MIT License 4 votes vote down vote up
/**
 * @return one console handler bean per WebSocket connection.
 */
@Bean
public WebSocketHandler consoleHandler() {
    return new PerConnectionWebSocketHandler(ConsoleHandler.class);
}
 
Example 9
Source Project: spring4ws-demos   Source File: SnakeConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler snakeWebSocketHandler() {
	return new PerConnectionWebSocketHandler(SnakeWebSocketHandler.class);
}