public abstract class WebSocketMessage<T> extends Object
BinaryMessage,
TextMessage| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
T |
getPayload()
Returns the message payload.
|
protected abstract int |
getPayloadSize() |
int |
hashCode() |
boolean |
isLast()
Whether this is the last part of a message, when partial message support on a
WebSocketHandler is enabled. |
String |
toString() |
protected abstract String |
toStringPayload() |
public T getPayload()
null.public boolean isLast()
WebSocketHandler is enabled. If partial message support is not enabled the
returned value is always true.protected abstract String toStringPayload()
protected abstract int getPayloadSize()