public class Agent extends Object
Agent
class is used to represent one agent in a Workgroup Queue.Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the agents name.
|
String |
getUser()
Return the agents JID
|
static Collection<String> |
getWorkgroups(String serviceJID,
String agentJID,
XMPPConnection connection) |
void |
setName(String newName)
Changes the name of the agent in the server.
|
public static Collection<String> getWorkgroups(String serviceJID, String agentJID, XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
public String getUser()
public String getName() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
public void setName(String newName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
newName
- the new name of the agent.XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
Copyright © 2019. All rights reserved.