Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the agents name.
|
Jid |
getUser()
Return the agents JID.
|
static Collection<String> |
getWorkgroups(Jid serviceJID,
Jid agentJID,
XMPPConnection connection) |
void |
setName(String newName)
Changes the name of the agent in the server.
|
public static Collection<String> getWorkgroups(Jid serviceJID, Jid agentJID, XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
public String getName() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public void setName(String newName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
newName
- the new name of the agent.XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException