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 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