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) |
process
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
fireEvent, getFirstChild, process
public 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
JaxmppException
public void afterRegister()
InitializingModule
afterRegister
in interface InitializingModule
afterRegister
in class AbstractStanzaModule<IQ>
public void beforeRegister()
InitializingModule
beforeRegister
in interface InitializingModule
beforeRegister
in class AbstractStanzaModule<IQ>
public void beforeUnregister()
InitializingModule
beforeUnregister
in interface InitializingModule
beforeUnregister
in class AbstractStanzaModule<IQ>
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
public RosterStore getRosterStore()
public RosterCacheProvider getVersionProvider()
protected void onRosterCleared()
public void onXmppSessionEstablished(SessionObject sessionObject) throws JaxmppException
onXmppSessionEstablished
in interface XmppSessionLogic.XmppSessionEstablishedHandler
JaxmppException
protected void processGet(IQ element) throws XMPPException, XMLException
AbstractIQModule
<iq type='get'>
.processGet
in class AbstractIQModule
element
- incoming XMPP stanzaXMPPException
XMLException
protected void processSet(IQ stanza) throws JaxmppException
AbstractIQModule
<iq type='set'>
.processSet
in class AbstractIQModule
stanza
- incoming XMPP stanzaJaxmppException
protected void remove(BareJID jid) throws JaxmppException
JaxmppException
public void rosterRequest() throws JaxmppException
JaxmppException
public void setContext(Context context)
setContext
in interface ContextAware
setContext
in class AbstractStanzaModule<IQ>
protected void update(RosterItem item) throws JaxmppException
JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.