public class ResourceBinderModule extends Object implements XmppModule
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceBinderModule.ResourceBindEvent |
| Modifier and Type | Field and Description |
|---|---|
static String |
BINDED_RESOURCE_JID
Property name for retrieve binded resource from
SessionObject.
|
protected Logger |
log |
static EventType |
ResourceBindError
Event fires on binding error.
|
static EventType |
ResourceBindSuccess
Event fires on binding success.
|
protected SessionObject |
sessionObject |
protected PacketWriter |
writer |
| Constructor and Description |
|---|
ResourceBinderModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<ResourceBinderModule.ResourceBindEvent> listener) |
void |
bind() |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Element element)
Main method of module.
|
void |
removeListener(EventType eventType,
Listener<ResourceBinderModule.ResourceBindEvent> listener) |
public static final String BINDED_RESOURCE_JID
public static final EventType ResourceBindError
public static final EventType ResourceBindSuccess
protected final Logger log
protected final SessionObject sessionObject
protected final PacketWriter writer
public ResourceBinderModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
public void addListener(EventType eventType, Listener<ResourceBinderModule.ResourceBindEvent> listener)
public void bind()
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<ResourceBinderModule.ResourceBindEvent> listener)
Copyright © 2006–2014 Tigase. All rights reserved.