public class RosterModule extends AbstractIQModule implements ContextAware, InitializingModule, XmppSessionLogic.XmppSessionEstablishedHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
RosterModule.Action |
static interface |
RosterModule.ItemAddedHandler |
static interface |
RosterModule.ItemRemovedHandler |
static interface |
RosterModule.ItemUpdatedHandler |
XmppSessionLogic.XmppSessionEstablishedHandler.XmppSessionEstablishedEvent| Modifier and Type | Field and Description |
|---|---|
static Criteria |
CRIT |
static String |
ROSTER_STORE_KEY |
context, log| Constructor and Description |
|---|
RosterModule() |
RosterModule(RosterCacheProvider versionProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(BareJID jid,
String name,
Collection<String> groups,
AsyncCallback asyncCallback) |
void |
afterRegister()
Called when module is registered.
|
void |
beforeRegister()
Called just before registration module in XmppModulesManager
.
|
void |
beforeUnregister()
Called when module is unregistered.
|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
RosterStore |
getRosterStore() |
static RosterStore |
getRosterStore(SessionObject sessionObject) |
RosterCacheProvider |
getVersionProvider() |
protected void |
onRosterCleared() |
void |
onXmppSessionEstablished(SessionObject sessionObject) |
protected void |
processGet(IQ element)
Method for processing stanza
<iq type='get'>. |
protected void |
processSet(IQ stanza)
Method for processing stanza
<iq type='set'>. |
protected void |
remove(BareJID jid) |
void |
rosterRequest()
Requests for roster.
|
void |
setContext(Context context) |
static void |
setRosterStore(SessionObject sessionObject,
RosterStore rosterStore) |
protected void |
update(RosterItem item) |
processaddExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, writefireEvent, getFirstChild, processpublic static final Criteria CRIT
public static final String ROSTER_STORE_KEY
public RosterModule()
public RosterModule(RosterCacheProvider versionProvider)
public static RosterStore getRosterStore(SessionObject sessionObject)
public static void setRosterStore(SessionObject sessionObject, RosterStore rosterStore)
protected void add(BareJID jid, String name, Collection<String> groups, AsyncCallback asyncCallback) throws JaxmppException
JaxmppExceptionpublic void afterRegister()
InitializingModuleafterRegister in interface InitializingModuleafterRegister in class AbstractStanzaModule<IQ>public void beforeRegister()
InitializingModulebeforeRegister in interface InitializingModulebeforeRegister in class AbstractStanzaModule<IQ>public void beforeUnregister()
InitializingModulebeforeUnregister in interface InitializingModulebeforeUnregister in class AbstractStanzaModule<IQ>public Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic RosterStore getRosterStore()
public RosterCacheProvider getVersionProvider()
protected void onRosterCleared()
public void onXmppSessionEstablished(SessionObject sessionObject) throws JaxmppException
onXmppSessionEstablished in interface XmppSessionLogic.XmppSessionEstablishedHandlerJaxmppExceptionprotected void processGet(IQ element) throws XMPPException, XMLException
AbstractIQModule<iq type='get'>.processGet in class AbstractIQModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionprotected void processSet(IQ stanza) throws JaxmppException
AbstractIQModule<iq type='set'>.processSet in class AbstractIQModulestanza - incoming XMPP stanzaJaxmppExceptionprotected void remove(BareJID jid) throws JaxmppException
JaxmppExceptionpublic void rosterRequest()
throws JaxmppException
JaxmppExceptionpublic void setContext(Context context)
setContext in interface ContextAwaresetContext in class AbstractStanzaModule<IQ>protected void update(RosterItem item) throws JaxmppException
JaxmppExceptionCopyright © 2006–2016 Tigase. All rights reserved.