public 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 be
null . |
protected abstract int |
getPayloadSize() |
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() |
public T getPayload()
null
.getPayload
in interface WebSocketMessage<T>
public boolean isLast()
isLast
in interface WebSocketMessage<T>
protected abstract String toStringPayload()
protected abstract int getPayloadSize()