public class ResourceBinderModule extends Object implements XmppModule, ContextAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceBinderModule.ResourceBindErrorHandler
Event fires on binding error.
|
static interface |
ResourceBinderModule.ResourceBindSuccessHandler
Event fires on binding success.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BINDED_RESOURCE_JID
Property name for retrieve binded resource from
SessionObject.
|
protected Logger |
log |
| Constructor and Description |
|---|
ResourceBinderModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceBindErrorHandler(ResourceBinderModule.ResourceBindErrorHandler handler) |
void |
addResourceBindSuccessHandler(ResourceBinderModule.ResourceBindSuccessHandler handler) |
void |
bind() |
JID |
getBindedJID() |
static JID |
getBindedJID(SessionObject sessionObject) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Element element)
Main method of module.
|
void |
removeResourceBindErrorHandler(ResourceBinderModule.ResourceBindErrorHandler handler) |
void |
removeResourceBindSuccessHandler(ResourceBinderModule.ResourceBindSuccessHandler handler) |
void |
setContext(Context context) |
public static final String BINDED_RESOURCE_JID
protected final Logger log
public static JID getBindedJID(SessionObject sessionObject)
public void addResourceBindErrorHandler(ResourceBinderModule.ResourceBindErrorHandler handler)
public void addResourceBindSuccessHandler(ResourceBinderModule.ResourceBindSuccessHandler handler)
public void bind()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionpublic JID getBindedJID()
public 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 removeResourceBindErrorHandler(ResourceBinderModule.ResourceBindErrorHandler handler)
public void removeResourceBindSuccessHandler(ResourceBinderModule.ResourceBindSuccessHandler handler)
public void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2016 Tigase. All rights reserved.