com.echomine.jabber
Class JabberIQMessage
java.lang.Object
com.echomine.jabber.JabberMessage
com.echomine.jabber.JabberJDOMMessage
com.echomine.jabber.AbstractJabberMessage
com.echomine.jabber.JabberIQMessage
- All Implemented Interfaces:
- JabberMessageParsable
- Direct Known Subclasses:
- AgentsIQMessage, AuthIQMessage, BrowseIQMessage, GatewayIQMessage, JabberVCardMessage, LastIQMessage, OOBIQMessage, PrivateXmlIQMessage, RegisterIQMessage, RosterIQMessage, SearchIQMessage, ServiceInfoIQMessage, ServiceItemsIQMessage, TimeIQMessage, VacationIQMessage, VersionIQMessage, XMLRPCMessage
public class JabberIQMessage
- extends AbstractJabberMessage
The iq message contains the parsed tag plus whatever content is sent inside that tag.
The message inside the tag is in a DOM tree and can be parsed further for more
information, such as query, register, etc. The IQ message by default requires a reply.
Constructor Summary |
JabberIQMessage()
constructs an iq message with default iq type of "get" |
JabberIQMessage(java.lang.String type)
this constructor is for creating outgoing messages. |
Method Summary |
int |
getMessageType()
the default message type is unknown. |
Methods inherited from class com.echomine.jabber.JabberMessage |
getMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_GET
public static final java.lang.String TYPE_GET
- See Also:
- Constant Field Values
TYPE_SET
public static final java.lang.String TYPE_SET
- See Also:
- Constant Field Values
TYPE_RESULT
public static final java.lang.String TYPE_RESULT
- See Also:
- Constant Field Values
JabberIQMessage
public JabberIQMessage(java.lang.String type)
- this constructor is for creating outgoing messages. It is here to be used by
subclasses. The constructor simply creates a default element tree with the
as the top top level tag, and then sets the message to use that tree.
JabberIQMessage
public JabberIQMessage()
- constructs an iq message with default iq type of "get"
getMessageType
public int getMessageType()
- Description copied from class:
JabberJDOMMessage
- the default message type is unknown. It doesn't mean that there is no type.
It just means that there is no known message parser for this particular object.
- Overrides:
getMessageType
in class JabberJDOMMessage
- Returns:
- a message code that is unique to the message
- See Also:
JabberCode
Copyright © 2001-2005 Echomine. All Rights Reserved.