public class CapabilitiesModule extends Object implements tigase.jaxmpp.core.client.XmppModule, tigase.jaxmpp.core.client.xmpp.modules.ContextAware, tigase.jaxmpp.core.client.xmpp.modules.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() |
void |
beforeRegister() |
void |
beforeUnregister() |
String |
generateVerificationString(String[] identities,
String[] features) |
CapabilitiesCache |
getCache() |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
String[] |
getFeatures() |
protected String |
getNodeName() |
protected boolean |
isEnabled() |
protected void |
onBeforePresenceSend(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
protected void |
onReceivedPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
void |
process(tigase.jaxmpp.core.client.xml.Element element) |
void |
setCache(CapabilitiesCache cache) |
void |
setContext(tigase.jaxmpp.core.client.Context context) |
public static final String NODE_NAME_KEY
public static final String VERIFICATION_STRING_KEY
public void afterRegister()
afterRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic void beforeRegister()
beforeRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic void beforeUnregister()
beforeUnregister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulepublic final String generateVerificationString(String[] identities, String[] features)
public CapabilitiesCache getCache()
public void setCache(CapabilitiesCache cache)
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.XmppModuleprotected String getNodeName()
protected boolean isEnabled()
protected void onBeforePresenceSend(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionprotected void onReceivedPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void process(tigase.jaxmpp.core.client.xml.Element element)
throws tigase.jaxmpp.core.client.XMPPException,
tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
process in interface tigase.jaxmpp.core.client.XmppModuletigase.jaxmpp.core.client.XMPPExceptiontigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwareCopyright © 2006–2016 Tigase. All rights reserved.