|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.ResourceBinderModule
public class ResourceBinderModule
Module for Resource Binding.
| Nested Class Summary | |
|---|---|
static class |
ResourceBinderModule.ResourceBindEvent
|
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ResourceBinderModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ResourceBinderModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
| Method Detail |
|---|
public void addListener(EventType eventType,
Listener<ResourceBinderModule.ResourceBindEvent> listener)
public void bind()
throws XMLException,
JaxmppException
XMLException
JaxmppExceptionpublic Criteria getCriteria()
XmppModule
getCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
See Service Discovery Features
getFeatures in interface XmppModule
public void process(Element element)
throws XMPPException,
XMLException
XmppModule
process in interface XmppModuleelement - incoming XMPP stanza
XMPPException
XMLException
public void removeListener(EventType eventType,
Listener<ResourceBinderModule.ResourceBindEvent> listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||