public class VCardManager extends Manager
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
static VCardManager |
getInstanceFor(XMPPConnection connection)
Retrieves a
VCardManager for the specified XMPPConnection, creating one if it doesn't already
exist. |
boolean |
isSupported(String jid)
Returns true if the given entity understands the vCard-XML format and allows the exchange of such.
|
static boolean |
isSupported(String jid,
XMPPConnection connection)
Deprecated.
use
isSupported(String) instead. |
VCard |
loadVCard()
Load the VCard of the current user.
|
VCard |
loadVCard(String bareJid)
Load VCard information for a given user.
|
void |
saveVCard(VCard vcard)
Save this vCard for the user connected by 'connection'.
|
connectionpublic static final String NAMESPACE
public static final String ELEMENT
public static VCardManager getInstanceFor(XMPPConnection connection)
VCardManager for the specified XMPPConnection, creating one if it doesn't already
exist.connection - the connection the manager is attached to.@Deprecated public static boolean isSupported(String jid, XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
isSupported(String) instead.jid - connection - XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionpublic void saveVCard(VCard vcard) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
XMPPException.XMPPErrorException - thrown if there was an issue setting the VCard in the server.SmackException.NoResponseException - if there was no response from the server.SmackException.NotConnectedExceptionpublic VCard loadVCard() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
public VCard loadVCard(String bareJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
XMPPException.XMPPErrorExceptionSmackException.NoResponseException - if there was no response from the server.SmackException.NotConnectedExceptionpublic boolean isSupported(String jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
jid - XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedException