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
XMLException
public void addSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler)
public void addSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler)
public void establish() throws JaxmppException
JaxmppException
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
public void process(Element element) throws XMPPException, XMLException
XmppModule
process
in interface XmppModule
element
- incoming XMPP stanzaXMPPException
XMLException
public void removeSessionEstablishmentErrorHandler(SessionEstablishmentModule.SessionEstablishmentErrorHandler handler)
public void removeSessionEstablishmentSuccessHandler(SessionEstablishmentModule.SessionEstablishmentSuccessHandler handler)
public void setContext(Context context)
setContext
in interface ContextAware
Copyright © 2006–2023 Tigase. All rights reserved.