T
- the payload typepublic abstract class AbstractWebSocketMessage<T> extends Object implements WebSocketMessage<T>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
T |
getPayload()
Return the message payload (never
null ). |
int |
hashCode() |
boolean |
isLast()
Whether this is the last part of a message sent as a series of partial messages.
|
String |
toString() |
protected abstract String |
toStringPayload() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPayloadLength
public T getPayload()
null
).getPayload
in interface WebSocketMessage<T>
public boolean isLast()
isLast
in interface WebSocketMessage<T>
protected abstract String toStringPayload()