com.echomine.jabber
Class JabberIQMessage

java.lang.Object
  extended by com.echomine.jabber.JabberMessage
      extended by com.echomine.jabber.JabberJDOMMessage
          extended by com.echomine.jabber.AbstractJabberMessage
              extended by 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.


Field Summary
static java.lang.String TYPE_GET
           
static java.lang.String TYPE_RESULT
           
static java.lang.String TYPE_SET
           
 
Fields inherited from class com.echomine.jabber.AbstractJabberMessage
TYPE_ERROR
 
Fields inherited from class com.echomine.jabber.JabberMessage
messageID
 
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.AbstractJabberMessage
getErrorMessage, getFrom, getTo, getType, isError, parse, setErrorMessage, setFrom, setTo, setType
 
Methods inherited from class com.echomine.jabber.JabberJDOMMessage
encode, getDOM, getXMLOutputter, setMessageID, toString
 
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
 

Field Detail

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
Constructor Detail

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"

Method Detail

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.