public class RosterModule
extends tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
implements tigase.jaxmpp.core.client.xmpp.modules.ContextAware, tigase.jaxmpp.core.client.xmpp.modules.InitializingModule, tigase.jaxmpp.core.client.XmppSessionLogic.XmppSessionEstablishedHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
RosterModule.Action |
static interface |
RosterModule.ItemAddedHandler |
static interface |
RosterModule.ItemRemovedHandler |
static interface |
RosterModule.ItemUpdatedHandler |
| Modifier and Type | Field and Description |
|---|---|
static tigase.jaxmpp.core.client.criteria.Criteria |
CRIT |
static String |
ROSTER_STORE_KEY |
| Constructor and Description |
|---|
RosterModule() |
RosterModule(RosterCacheProvider versionProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(tigase.jaxmpp.core.client.BareJID jid,
String name,
Collection<String> groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback) |
void |
afterRegister() |
void |
beforeRegister() |
void |
beforeUnregister() |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
String[] |
getFeatures() |
RosterStore |
getRosterStore() |
static RosterStore |
getRosterStore(tigase.jaxmpp.core.client.SessionObject sessionObject) |
RosterCacheProvider |
getVersionProvider() |
protected void |
onRosterCleared() |
void |
onXmppSessionEstablished(tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected void |
processGet(tigase.jaxmpp.core.client.xmpp.stanzas.IQ element) |
protected void |
processSet(tigase.jaxmpp.core.client.xmpp.stanzas.IQ stanza) |
protected void |
remove(tigase.jaxmpp.core.client.BareJID jid) |
void |
rosterRequest()
Requests for roster.
|
void |
setContext(tigase.jaxmpp.core.client.Context context) |
static void |
setRosterStore(tigase.jaxmpp.core.client.SessionObject sessionObject,
RosterStore rosterStore) |
protected void |
update(RosterItem item) |
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, writepublic static final tigase.jaxmpp.core.client.criteria.Criteria CRIT
public static final String ROSTER_STORE_KEY
public RosterModule()
public RosterModule(RosterCacheProvider versionProvider)
public static RosterStore getRosterStore(tigase.jaxmpp.core.client.SessionObject sessionObject)
public static void setRosterStore(tigase.jaxmpp.core.client.SessionObject sessionObject,
RosterStore rosterStore)
protected void add(tigase.jaxmpp.core.client.BareJID jid,
String name,
Collection<String> groups,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void afterRegister()
afterRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModuleafterRegister in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.IQ>public void beforeRegister()
beforeRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulebeforeRegister in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.IQ>public void beforeUnregister()
beforeUnregister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulebeforeUnregister in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.IQ>public tigase.jaxmpp.core.client.criteria.Criteria getCriteria()
getCriteria in interface tigase.jaxmpp.core.client.XmppModulepublic String[] getFeatures()
getFeatures in interface tigase.jaxmpp.core.client.XmppModulepublic RosterStore getRosterStore()
public RosterCacheProvider getVersionProvider()
protected void onRosterCleared()
public void onXmppSessionEstablished(tigase.jaxmpp.core.client.SessionObject sessionObject)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onXmppSessionEstablished in interface tigase.jaxmpp.core.client.XmppSessionLogic.XmppSessionEstablishedHandlertigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processGet(tigase.jaxmpp.core.client.xmpp.stanzas.IQ element)
throws tigase.jaxmpp.core.client.XMPPException,
tigase.jaxmpp.core.client.xml.XMLException
processGet in class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModuletigase.jaxmpp.core.client.XMPPExceptiontigase.jaxmpp.core.client.xml.XMLExceptionprotected void processSet(tigase.jaxmpp.core.client.xmpp.stanzas.IQ stanza)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
processSet in class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModuletigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void remove(tigase.jaxmpp.core.client.BareJID jid)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void rosterRequest()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwaresetContext in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.IQ>protected void update(RosterItem item) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2018 Tigase. All rights reserved.