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