Class PassThruSubProtocolHandler
java.lang.Object
org.springframework.integration.websocket.support.PassThruSubProtocolHandler
- All Implemented Interfaces:
- SubProtocolHandler
public class PassThruSubProtocolHandler extends Object implements SubProtocolHandler
The simple 'pass thru' 
SubProtocolHandler, when there is no interests in the
 WebSocket sub-protocols.
 This class just convert Message to the WebSocketMessage
 on 'send' part and vise versa - on 'receive' part.- Since:
- 4.1
- Author:
- Artem Bilan
- 
Constructor SummaryConstructors Constructor Description PassThruSubProtocolHandler()
- 
Method SummaryModifier and Type Method Description voidafterSessionEnded(WebSocketSession session, CloseStatus closeStatus, MessageChannel outputChannel)voidafterSessionStarted(WebSocketSession session, MessageChannel outputChannel)List<String>getSupportedProtocols()voidhandleMessageFromClient(WebSocketSession session, WebSocketMessage<?> webSocketMessage, MessageChannel outputChannel)voidhandleMessageToClient(WebSocketSession session, Message<?> message)StringresolveSessionId(Message<?> message)voidsetSupportedProtocols(String... supportedProtocols)
- 
Constructor Details- 
PassThruSubProtocolHandlerpublic PassThruSubProtocolHandler()
 
- 
- 
Method Details- 
setSupportedProtocols
- 
getSupportedProtocols- Specified by:
- getSupportedProtocolsin interface- SubProtocolHandler
 
- 
handleMessageFromClientpublic void handleMessageFromClient(WebSocketSession session, WebSocketMessage<?> webSocketMessage, MessageChannel outputChannel)- Specified by:
- handleMessageFromClientin interface- SubProtocolHandler
 
- 
handleMessageToClient- Specified by:
- handleMessageToClientin interface- SubProtocolHandler
- Throws:
- Exception
 
- 
resolveSessionId- Specified by:
- resolveSessionIdin interface- SubProtocolHandler
 
- 
afterSessionStarted- Specified by:
- afterSessionStartedin interface- SubProtocolHandler
 
- 
afterSessionEndedpublic void afterSessionEnded(WebSocketSession session, CloseStatus closeStatus, MessageChannel outputChannel)- Specified by:
- afterSessionEndedin interface- SubProtocolHandler
 
 
-