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.
|
Jid |
getUser()
Return the agents JID.
|
static java.util.Collection<java.lang.String> |
getWorkgroups(Jid serviceJID,
Jid agentJID,
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(Jid serviceJID, Jid agentJID, XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
public java.lang.String getName() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
java.lang.InterruptedException
public void setName(java.lang.String newName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
newName
- the new name of the agent.XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
java.lang.InterruptedException