org.media.mn8.protocol.jabber.datablocks
Class Iq

java.lang.Object
  |
  +--org.media.mn8.protocol.jabber.JabberDataBlock
        |
        +--org.media.mn8.protocol.jabber.datablocks.Iq
Direct Known Subclasses:
Roster

public class Iq
extends JabberDataBlock

Class representing the iq message block


Field Summary
 
Fields inherited from class org.media.mn8.protocol.jabber.JabberDataBlock
attributes, childBlocks, parent, textData
 
Constructor Summary
Iq()
          Constructor.
Iq(JabberDataBlock _parent, Hashtable _attributes)
          Constructor including an Attribute list
Iq(String type)
          Constructor.
 
Method Summary
 Iq constructReply()
          Construct a reply message
 String getTagName()
          Method to return the tag name
 
Methods inherited from class org.media.mn8.protocol.jabber.JabberDataBlock
addAttributeToStringBuffer, addChild, addText, constructReply, getAttribute, getBytes, getChildBlocks, getParent, getTagEnd, getTagStart, getText, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Iq

public Iq()
Constructor.


Iq

public Iq(String type)
Constructor. Sets the message type and constructs an empty IQ message


Iq

public Iq(JabberDataBlock _parent,
          Hashtable _attributes)
Constructor including an Attribute list

Parameters:
_parent - The parent of this datablock
_attributes - The list of element attributes
Method Detail

getTagName

public String getTagName()
Method to return the tag name

Overrides:
getTagName in class JabberDataBlock
Returns:
Always the string "iq".

constructReply

public Iq constructReply()
Construct a reply message

Returns:
A message object destined for the sender of this message.


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."