public class Agent
extends java.lang.Object
Agent
class is used to represent one agent in a Workgroup Queue.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the agents name.
|
org.jxmpp.jid.Jid |
getUser()
Return the agents JID.
|
static java.util.Collection<java.lang.String> |
getWorkgroups(org.jxmpp.jid.Jid serviceJID,
org.jxmpp.jid.Jid agentJID,
org.jivesoftware.smack.XMPPConnection connection) |
void |
setName(java.lang.String newName)
Changes the name of the agent in the server.
|
public static java.util.Collection<java.lang.String> getWorkgroups(org.jxmpp.jid.Jid serviceJID, org.jxmpp.jid.Jid agentJID, org.jivesoftware.smack.XMPPConnection connection) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public org.jxmpp.jid.Jid getUser()
public java.lang.String getName() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.public void setName(java.lang.String newName) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
newName
- the new name of the agent.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.