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 JaxmppException
JaxmppException
public JID getBindedJID()
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 removeResourceBindErrorHandler(ResourceBinderModule.ResourceBindErrorHandler handler)
public void removeResourceBindSuccessHandler(ResourceBinderModule.ResourceBindSuccessHandler handler)
public void setContext(Context context)
setContext
in interface ContextAware
Copyright © 2006–2023 Tigase. All rights reserved.