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

java.lang.Object
  |
  +--org.media.mn8.protocol.jabber.JabberDataBlock
        |
        +--org.media.mn8.protocol.jabber.datablocks.Presence

public class Presence
extends JabberDataBlock

Class representing the presence message block.


Field Summary
 
Fields inherited from class org.media.mn8.protocol.jabber.JabberDataBlock
attributes, childBlocks, parent, textData
 
Constructor Summary
Presence()
          Default constructor for outgoing presence messages.
Presence(JabberDataBlock _parent, Hashtable _attributes)
          Constructor.
 
Method Summary
 Presence constructReply()
          Construct a reply message
 String getTagName()
          Method to get the name of the tag
 void setAvailable()
          Method to fill this presence object with the information neccessary to indicate the client is available.
 void setProbe()
          Method to fill this presence object with the information neccessary to do a probe.
 void setSubscribe()
          Method to fill this presence object with the information neccessary to do a probe.
 void setType(String type)
          Method to set the presence type
 void setUnavailable()
          Method to fill this presence object with the information neccessary to indicate the client is available.
 
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

Presence

public Presence(JabberDataBlock _parent,
                Hashtable _attributes)
Constructor.

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

Presence

public Presence()
Default constructor for outgoing presence messages.

Method Detail

setAvailable

public void setAvailable()
Method to fill this presence object with the information neccessary to indicate the client is available.


setUnavailable

public void setUnavailable()
Method to fill this presence object with the information neccessary to indicate the client is available.


setProbe

public void setProbe()
Method to fill this presence object with the information neccessary to do a probe.


setSubscribe

public void setSubscribe()
Method to fill this presence object with the information neccessary to do a probe.


setType

public void setType(String type)
Method to set the presence type


getTagName

public String getTagName()
Method to get the name of the tag

Overrides:
getTagName in class JabberDataBlock
Returns:
The tag name

constructReply

public Presence 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."