Smack

org.jivesoftware.smackx.workgroup.packet
Class AgentStatus

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

public class AgentStatus
extends java.lang.Object
implements PacketExtension

Agent status packet.

Author:
Matt Tucker

Nested Class Summary
static class AgentStatus.ChatInfo
          Represents information about a Chat where this Agent is participating.
static class AgentStatus.Provider
          Packet extension provider for AgentStatus packets.
 
Field Summary
static java.lang.String ELEMENT_NAME
          Element name of the packet extension.
static java.lang.String NAMESPACE
          Namespace of the packet extension.
 
Method Summary
 java.util.List<AgentStatus.ChatInfo> getCurrentChats()
          Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.
 java.lang.String getElementName()
          Returns the root element name.
 int getMaxChats()
           
 java.lang.String getNamespace()
          Returns the root element XML namespace.
 java.lang.String getWorkgroupJID()
           
 java.lang.String toXML()
          Returns the XML representation 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 java.lang.String ELEMENT_NAME
Element name of the packet extension.

See Also:
Constant Field Values

NAMESPACE

public static final java.lang.String NAMESPACE
Namespace of the packet extension.

See Also:
Constant Field Values
Method Detail

getWorkgroupJID

public java.lang.String getWorkgroupJID()

getCurrentChats

public java.util.List<AgentStatus.ChatInfo> getCurrentChats()
Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.

Returns:
a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.

getMaxChats

public int getMaxChats()

getElementName

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

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

getNamespace

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

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

toXML

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

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

Smack

Copyright © 2003-2007 Jive Software.