public abstract class AbstractWebSocketMessage<T> extends java.lang.Object implements WebSocketMessage<T>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
T |
getPayload()
Return the message payload, never be
null . |
int |
hashCode() |
boolean |
isLast()
Whether this is the last part of a message sent as a series of partial messages.
|
java.lang.String |
toString() |
protected abstract java.lang.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>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract java.lang.String toStringPayload()