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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleBinaryMessage(webSocketSession session, BinaryMessage message) Methods inherited from class AbstractwebSocketHandler
afterConnectionClosed, afterConnectionEstablished, handleMessage, handlePongMessage, handleTextMessage, handleTransportError, supportsPartialMessages
-
Constructor Details
-
TextwebSocketHandler
public TextwebSocketHandler()
-
-
Method Details
-
handleBinaryMessage
- Overrides:
handleBinaryMessagein classAbstractwebSocketHandler
-