Smack

org.jivesoftware.smackx.workgroup.packet
Class AgentInfo

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by org.jivesoftware.smackx.workgroup.packet.AgentInfo

public class AgentInfo
extends IQ

IQ packet for retrieving and changing the Agent personal information.


Nested Class Summary
static class AgentInfo.Provider
          An IQProvider for AgentInfo packets.
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
IQ.Type
 
Field Summary
static String ELEMENT_NAME
          Element name of the packet extension.
static String NAMESPACE
          Namespace of the packet extension.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
 
Constructor Summary
AgentInfo()
           
 
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
 String getJid()
          Returns the Agent's jid.
 String getName()
          Returns the Agent's name.
 void setJid(String jid)
          Sets the Agent's jid.
 void setName(String name)
          Sets the Agent's name.
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setTo
 
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

AgentInfo

public AgentInfo()
Method Detail

getJid

public String getJid()
Returns the Agent's jid.

Returns:
the Agent's jid.

setJid

public void setJid(String jid)
Sets the Agent's jid.

Parameters:
jid - the jid of the agent.

getName

public String getName()
Returns the Agent's name. The name of the agent may be different than the user's name. This property may be shown in the webchat client.

Returns:
the Agent's name.

setName

public void setName(String name)
Sets the Agent's name. The name of the agent may be different than the user's name. This property may be shown in the webchat client.

Parameters:
name - the new name of the agent.

getChildElementXML

public String getChildElementXML()
Description copied from class: IQ
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class IQ
Returns:
the child element section of the IQ XML.

Smack

Copyright © 2003-2007 Jive Software.