|
||||||||||
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.NullMessage
public class NullMessage
This message represents a null message that does absolutely nothing. The reason it is here is to provide a mechanism for sending a NOOP message that can be used to provide keepalive pings. Because the Jabber communication is based on XML, spaces and newlines doesn't affect the output or processing of the message. In this message, we use a space instead.
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
NullMessage()
|
Method Summary | |
---|---|
java.lang.String |
encode()
encodes the data into an XML string that is ready to be sent out to the network. |
int |
getMessageType()
This method will indicate what type of message it is. |
Methods inherited from class com.echomine.jabber.JabberMessage |
---|
getMessageID, 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, toString, wait, wait, wait |
Constructor Detail |
---|
public NullMessage()
Method Detail |
---|
public int getMessageType()
JabberMessage
getMessageType
in class JabberMessage
JabberCode
public java.lang.String encode() throws ParseException
JabberMessage
encode
in class JabberMessage
ParseException
- if something went wrong during encoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |