|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore
public abstract class PresenceStore
Storage for keep received presences of buddies.
| Field Summary | |
|---|---|
protected Map<BareJID,Presence> |
bestPresence
|
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler |
handler
|
protected Map<JID,Presence> |
presenceByJid
|
protected Map<BareJID,Map<String,Presence>> |
presencesMapByBareJid
|
| Constructor Summary | |
|---|---|
PresenceStore()
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all known presence information. |
protected abstract Map<String,Presence> |
createResourcePresenceMap()
|
Presence |
getBestPresence(BareJID jid)
Returns presence stanza with highest priority of goven bare JID. |
Presence |
getPresence(JID jid)
Returns presence stanza of given JID. |
Map<String,Presence> |
getPresences(BareJID jid)
Returns map of all known resources and related presences stanza of given bare JID. |
boolean |
isAvailable(BareJID jid)
|
void |
setPresence(Presence.Show show,
String status,
Integer priority)
|
protected void |
update(Presence presence)
|
protected void |
updateBestPresence(Presence presence)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<BareJID,Presence> bestPresence
protected tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceStore.Handler handler
protected Map<JID,Presence> presenceByJid
protected Map<BareJID,Map<String,Presence>> presencesMapByBareJid
| Constructor Detail |
|---|
public PresenceStore()
| Method Detail |
|---|
public void clear()
throws JaxmppException
JaxmppExceptionprotected abstract Map<String,Presence> createResourcePresenceMap()
public Presence getBestPresence(BareJID jid)
throws XMLException
jid - JID of sender
null if not found.
XMLExceptionpublic Presence getPresence(JID jid)
jid - JID of sender
null if not found.public Map<String,Presence> getPresences(BareJID jid)
jid - basre JID of sender
public boolean isAvailable(BareJID jid)
throws XMLException
XMLException
public void setPresence(Presence.Show show,
String status,
Integer priority)
throws XMLException,
JaxmppException
XMLException
JaxmppException
protected void update(Presence presence)
throws XMLException
XMLException
protected void updateBestPresence(Presence presence)
throws XMLException
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||