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