public class SessionEstablishmentModule extends Object implements XmppModule
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionEstablishmentModule.SessionEstablishmentEvent |
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
static String |
SESSION_ESTABLISHED |
static EventType |
SessionEstablishmentError |
static EventType |
SessionEstablishmentSuccess |
protected SessionObject |
sessionObject |
protected PacketWriter |
writer |
| Constructor and Description |
|---|
SessionEstablishmentModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<SessionEstablishmentModule.SessionEstablishmentEvent> listener) |
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 |
removeListener(EventType eventType,
Listener<SessionEstablishmentModule.SessionEstablishmentEvent> listener) |
public static final String SESSION_ESTABLISHED
public static final EventType SessionEstablishmentError
public static final EventType SessionEstablishmentSuccess
protected final Logger log
protected final SessionObject sessionObject
protected final PacketWriter writer
public SessionEstablishmentModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
public static boolean isSessionEstablishingAvailable(SessionObject sessionObject) throws XMLException
XMLExceptionpublic void addListener(EventType eventType, Listener<SessionEstablishmentModule.SessionEstablishmentEvent> listener)
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 removeListener(EventType eventType, Listener<SessionEstablishmentModule.SessionEstablishmentEvent> listener)
Copyright © 2006–2014 Tigase. All rights reserved.