Package org.springframework.web.socket
Class AbstractWebSocketMessage<T>
java.lang.Object
org.springframework.web.socket.AbstractWebSocketMessage<T>
- Type Parameters:
T
- the payload type
- All Implemented Interfaces:
WebSocketMessage<T>
- Direct Known Subclasses:
BinaryMessage
,PingMessage
,PongMessage
,TextMessage
A message that can be handled or sent on a WebSocket connection.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Method Details
-
getPayload
Return the message payload (nevernull
).- Specified by:
getPayload
in interfaceWebSocketMessage<T>
-
isLast
public boolean isLast()Whether this is the last part of a message sent as a series of partial messages.- Specified by:
isLast
in interfaceWebSocketMessage<T>
-
equals
-
hashCode
public int hashCode() -
toString
-
toStringPayload
-