Smack

org.jivesoftware.smackx.workgroup.packet
Class WorkgroupInformation

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.packet.WorkgroupInformation
All Implemented Interfaces:
PacketExtension

public class WorkgroupInformation
extends Object
implements PacketExtension

A packet extension that contains information about the user and agent in a workgroup chat. The packet extension is attached to group chat invitations.


Nested Class Summary
static class WorkgroupInformation.Provider
           
 
Field Summary
static String ELEMENT_NAME
          Element name of the packet extension.
static String NAMESPACE
          Namespace of the packet extension.
 
Constructor Summary
protected WorkgroupInformation(String userID, String agentID)
           
 
Method Summary
 String getAgentID()
           
 String getElementName()
          Returns the root element name.
 String getNamespace()
          Returns the root element XML namespace.
 String getUserID()
           
 String toXML()
          Returns the XML reppresentation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
Element name of the packet extension.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
Namespace of the packet extension.

See Also:
Constant Field Values
Constructor Detail

WorkgroupInformation

protected WorkgroupInformation(String userID,
                               String agentID)
Method Detail

getUserID

public String getUserID()

getAgentID

public String getAgentID()

getElementName

public String getElementName()
Description copied from interface: PacketExtension
Returns the root element name.

Specified by:
getElementName in interface PacketExtension
Returns:
the element name.

getNamespace

public String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

Specified by:
getNamespace in interface PacketExtension
Returns:
the namespace.

toXML

public String toXML()
Description copied from interface: PacketExtension
Returns the XML reppresentation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003 Jive Software.