public abstract class Message
extends java.lang.Object
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
static Message |
adapt(Message msg) |
abstract BinaryMessage |
asBinaryMessage()
Returns this BinaryMessage if it is a binary message, throws otherwise.
|
abstract Message |
asScala() |
abstract TextMessage |
asTextMessage()
Returns this TextMessage if it is a text message, throws otherwise.
|
abstract boolean |
isStrict()
Is this message a strict one?
|
abstract boolean |
isText()
Is this message a text message?
|
public abstract boolean isText()
asTextMessage
will return this
text message, if false, asBinaryMessage
will return this binary message.public abstract boolean isStrict()
public abstract TextMessage asTextMessage()
public abstract BinaryMessage asBinaryMessage()
public abstract Message asScala()