public abstract class PresenceStore extends Object implements tigase.jaxmpp.core.client.Property
| Modifier and Type | Field and Description |
|---|---|
protected Map<tigase.jaxmpp.core.client.BareJID,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> |
bestPresence |
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler |
handler |
protected Map<tigase.jaxmpp.core.client.JID,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> |
presenceByJid |
protected Map<tigase.jaxmpp.core.client.BareJID,Map<String,tigase.jaxmpp.core.client.xmpp.stanzas.Presence>> |
presencesMapByBareJid |
| Constructor and Description |
|---|
PresenceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all known presence information.
|
protected abstract Map<String,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> |
createResourcePresenceMap() |
tigase.jaxmpp.core.client.xmpp.stanzas.Presence |
getBestPresence(tigase.jaxmpp.core.client.BareJID jid)
Returns presence stanza with highest priority of goven bare JID.
|
tigase.jaxmpp.core.client.xmpp.stanzas.Presence |
getPresence(tigase.jaxmpp.core.client.JID jid)
Returns presence stanza of given JID.
|
Map<String,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> |
getPresences(tigase.jaxmpp.core.client.BareJID jid)
Returns map of all known resources and related presences stanza of given
bare JID.
|
Class<PresenceStore> |
getPropertyClass() |
boolean |
isAvailable(tigase.jaxmpp.core.client.BareJID jid) |
void |
setPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence.Show show,
String status,
Integer priority) |
protected void |
update(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
protected void |
updateBestPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
protected Map<tigase.jaxmpp.core.client.BareJID,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> bestPresence
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler handler
protected Map<tigase.jaxmpp.core.client.JID,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> presenceByJid
public void clear()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected abstract Map<String,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> createResourcePresenceMap()
public tigase.jaxmpp.core.client.xmpp.stanzas.Presence getBestPresence(tigase.jaxmpp.core.client.BareJID jid)
throws tigase.jaxmpp.core.client.xml.XMLException
jid - JID of sendernull if not found.tigase.jaxmpp.core.client.xml.XMLExceptionpublic tigase.jaxmpp.core.client.xmpp.stanzas.Presence getPresence(tigase.jaxmpp.core.client.JID jid)
jid - JID of sendernull if not found.public Map<String,tigase.jaxmpp.core.client.xmpp.stanzas.Presence> getPresences(tigase.jaxmpp.core.client.BareJID jid)
jid - basre JID of senderpublic Class<PresenceStore> getPropertyClass()
getPropertyClass in interface tigase.jaxmpp.core.client.Propertypublic boolean isAvailable(tigase.jaxmpp.core.client.BareJID jid)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic void setPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence.Show show,
String status,
Integer priority)
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void update(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionprotected void updateBestPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionCopyright © 2006–2016 Tigase. All rights reserved.