Class BinaryWebSocketHandler
java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.BinaryWebSocketHandler
- All Implemented Interfaces:
WebSocketHandler
A convenient base class for
WebSocketHandler
implementations
that process binary messages only.
Text 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
handleTextMessage
(WebSocketSession session, TextMessage message) Methods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
afterConnectionClosed, afterConnectionEstablished, handleBinaryMessage, handleMessage, handlePongMessage, handleTransportError, supportsPartialMessages
-
Constructor Details
-
BinaryWebSocketHandler
public BinaryWebSocketHandler()
-
-
Method Details
-
handleTextMessage
- Overrides:
handleTextMessage
in classAbstractWebSocketHandler
-