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

public class TextWebSocketHandler extends AbstractWebSocketHandler
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