public class CapabilitiesModule extends Object implements XmppModule, ContextAware, InitializingModule
| Modifier and Type | Field and Description |
|---|---|
static String |
NODE_NAME_KEY |
static String |
VERIFICATION_STRING_KEY |
| Constructor and Description |
|---|
CapabilitiesModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRegister()
Called when module is registered.
|
void |
beforeRegister()
Called just before registration module in XmppModulesManager
.
|
void |
beforeUnregister()
Called when module is unregistered.
|
String |
generateVerificationString(String[] identities,
String[] features) |
CapabilitiesCache |
getCache() |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
protected String |
getNodeName() |
protected boolean |
isEnabled() |
protected void |
onBeforePresenceSend(Presence presence) |
protected void |
onReceivedPresence(Presence presence) |
void |
process(Element element)
Main method of module.
|
void |
setCache(CapabilitiesCache cache) |
void |
setContext(Context context) |
public static final String NODE_NAME_KEY
public static final String VERIFICATION_STRING_KEY
public void afterRegister()
InitializingModuleafterRegister in interface InitializingModulepublic void beforeRegister()
InitializingModulebeforeRegister in interface InitializingModulepublic void beforeUnregister()
InitializingModulebeforeUnregister in interface InitializingModulepublic final String generateVerificationString(String[] identities, String[] features)
public CapabilitiesCache getCache()
public void setCache(CapabilitiesCache cache)
public Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModuleprotected String getNodeName()
protected boolean isEnabled()
protected void onBeforePresenceSend(Presence presence) throws XMLException
XMLExceptionprotected void onReceivedPresence(Presence presence) throws JaxmppException
JaxmppExceptionpublic void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionpublic void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2016 Tigase. All rights reserved.