public final class SessionMessageAdapter extends java.lang.Object implements SessionMessage
| Modifier and Type | Method and Description |
|---|---|
org.macroing.cit.messaging.Message |
getMessage()
Returns the
Message assigned to this SessionMessageAdapter. |
Session |
getSession()
Returns the
Session assigned to this SessionMessageAdapter. |
static SessionMessageAdapter |
newInstance(Session session,
org.macroing.cit.messaging.Message message)
Returns a new
SessionMessageAdapter for the given values. |
SessionMessageAdapter |
newMessage(org.macroing.cit.messaging.Message message)
|
public org.macroing.cit.messaging.Message getMessage()
Message assigned to this SessionMessageAdapter.Message assigned to this SessionMessageAdapterpublic Session getSession()
Session assigned to this SessionMessageAdapter.getSession in interface SessionMessageSession assigned to this SessionMessageAdapterpublic SessionMessageAdapter newMessage(org.macroing.cit.messaging.Message message)
SessionMessageAdapter with the current Session, but with a new Message.
If message is null, a NullPointerException will be thrown.
message - the new MessageSessionMessageAdapter with the current Session, but with a new Messagejava.lang.NullPointerException - thrown if, and only if, message is nullpublic static SessionMessageAdapter newInstance(Session session, org.macroing.cit.messaging.Message message)
SessionMessageAdapter for the given values.
If either session or message are null, a NullPointerException will be thrown.
session - the Session to be usedmessage - the Message to be usedSessionMessageAdapter for the given valuesjava.lang.NullPointerException - thrown if, and only if, either session or message are null