public class RosterModule extends AbstractIQModule implements InitializingModule
| Modifier and Type | Class and Description |
|---|---|
static class |
RosterModule.RosterEvent |
| Modifier and Type | Field and Description |
|---|---|
static Criteria |
CRIT |
static EventType |
ItemAdded |
static EventType |
ItemRemoved |
static EventType |
ItemUpdated |
log, observable, sessionObject, writer| Constructor and Description |
|---|
RosterModule(SessionObject sessionObject,
PacketWriter packetWriter) |
| 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.
|
RosterCacheProvider |
getVersionProvider() |
protected void |
onRosterCleared() |
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.
|
protected void |
update(RosterItem item) |
addListener, addListener, process, removeAllListeners, removeListener, removeListener, setObservablepublic static final Criteria CRIT
public static final EventType ItemAdded
public static final EventType ItemRemoved
public static final EventType ItemUpdated
public RosterModule(SessionObject sessionObject, PacketWriter packetWriter)
protected void add(BareJID jid, String name, Collection<String> groups, AsyncCallback asyncCallback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void afterRegister()
InitializingModuleafterRegister in interface InitializingModulepublic void beforeRegister()
InitializingModulebeforeRegister in interface InitializingModulepublic void beforeUnregister()
InitializingModulebeforeUnregister in interface InitializingModulepublic Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic RosterCacheProvider getVersionProvider()
protected void onRosterCleared()
protected 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 XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void rosterRequest()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionprotected void update(RosterItem item) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.