|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JabberMessage
com.echomine.jabber.MsgSessionInit
public class MsgSessionInit
represents the initial message that gets sent out. This message is the first message initiated by the client to establish an active session. Once session starts, the rest is parsed and handled accordingly.
Conforms to XMPP 1.0 (Stream version 1.0)
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
MsgSessionInit(java.lang.String to)
sets only the to. |
|
MsgSessionInit(java.lang.String from,
java.lang.String sessionID,
java.lang.String version)
sets the from and session id. |
Method Summary | |
---|---|
java.lang.String |
encode()
encode is only used for outgoing messages only |
java.lang.String |
getMessageID()
the session init method uses the "to" and "from" as the main id, not the generated id itself. |
int |
getMessageType()
the default message type for message init is arbitrary and defined only in the Muse itself. |
java.lang.String |
getServerName()
|
java.lang.String |
getSessionID()
|
java.lang.String |
getVersion()
|
void |
setServerName(java.lang.String serverName)
|
void |
setVersion(java.lang.String version)
sets the version for the stream |
java.lang.String |
toString()
|
Methods inherited from class com.echomine.jabber.JabberMessage |
---|
getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setMessageID, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MsgSessionInit(java.lang.String to)
to
- the server name that the client is connecting topublic MsgSessionInit(java.lang.String from, java.lang.String sessionID, java.lang.String version)
from
- the server name that is received from the serversessionID
- the session id associated with this connection as received from the serverversion
- the version number of the accepted stream, null if no version (1.0 will be assumed)Method Detail |
---|
public java.lang.String encode()
encode
in class JabberMessage
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getServerName()
public void setServerName(java.lang.String serverName)
public java.lang.String getSessionID()
public java.lang.String getMessageID()
getMessageID
in class JabberMessage
public int getMessageType()
getMessageType
in class JabberMessage
JabberCode
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |