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