public class SessionEstablishmentModule extends Object implements XmppModule, ContextAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
SessionEstablishmentModule.SessionEstablishmentErrorHandler |
static interface |
SessionEstablishmentModule.SessionEstablishmentSuccessHandler |
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
static String |
SESSION_ESTABLISHED |
| Constructor and Description |
|---|
SessionEstablishmentModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler) |
void |
addSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler) |
void |
establish() |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
static boolean |
isSessionEstablishingAvailable(SessionObject sessionObject) |
void |
process(Element element)
Main method of module.
|
void |
removeSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler) |
void |
removeSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler) |
void |
setContext(Context context) |
public static final String SESSION_ESTABLISHED
protected final Logger log
public static boolean isSessionEstablishingAvailable(SessionObject sessionObject) throws XMLException
XMLExceptionpublic void addSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler)
public void addSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler)
public void establish()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionpublic Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic void process(Element element) throws XMPPException, XMLException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionpublic void removeSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler)
public void removeSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler)
public void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2015 Tigase. All rights reserved.