Class TextWebSocketHandler
java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
- All Implemented Interfaces:
WebSocketHandler
- Direct Known Subclasses:
SockJsWebSocketHandler
A convenient base class for
WebSocketHandler
implementations
that process text messages only.
Binary messages are rejected with CloseStatus.NOT_ACCEPTABLE
.
All other methods have empty implementations.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleBinaryMessage
(WebSocketSession session, BinaryMessage message) Methods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
afterConnectionClosed, afterConnectionEstablished, handleMessage, handlePongMessage, handleTextMessage, handleTransportError, supportsPartialMessages
-
Constructor Details
-
TextWebSocketHandler
public TextWebSocketHandler()
-
-
Method Details
-
handleBinaryMessage
- Overrides:
handleBinaryMessage
in classAbstractWebSocketHandler
-