public class InBandRegistrationModule extends AbstractIQModule
Modifier and Type | Class and Description |
---|---|
static interface |
InBandRegistrationModule.NotSupportedErrorHandler |
static interface |
InBandRegistrationModule.ReceivedErrorHandler |
static interface |
InBandRegistrationModule.ReceivedRequestedFieldsHandler |
static interface |
InBandRegistrationModule.ReceivedTimeoutHandler |
Modifier and Type | Field and Description |
---|---|
static String |
BINDED_RESOURCE_JID
Duplicate of
ResourceBinderModule#BINDED_RESOURCE_JID to avoid dependency between
modules. |
static String |
IN_BAND_REGISTRATION_MODE_KEY |
context, log
Constructor and Description |
---|
InBandRegistrationModule() |
process
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public static final String BINDED_RESOURCE_JID
ResourceBinderModule#BINDED_RESOURCE_JID
to avoid dependency between
modules.public static final String IN_BAND_REGISTRATION_MODE_KEY
public static boolean isRegistrationAvailable(Context context) throws JaxmppException
JaxmppException
public static boolean isRegistrationAvailable(SessionObject sessionObject) throws JaxmppException
JaxmppException
public void addNotSupportedErrorHandler(InBandRegistrationModule.NotSupportedErrorHandler handler)
public void addReceivedErrorHandler(InBandRegistrationModule.ReceivedErrorHandler handler)
public void addReceivedRequestedFieldsHandler(InBandRegistrationModule.ReceivedRequestedFieldsHandler handler)
public void addReceivedTimeoutHandler(InBandRegistrationModule.ReceivedTimeoutHandler handler)
public Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
protected void processGet(IQ element) throws JaxmppException
AbstractIQModule
<iq type='get'>
.processGet
in class AbstractIQModule
element
- incoming XMPP stanzaJaxmppException
protected void processSet(IQ element) throws JaxmppException
AbstractIQModule
<iq type='set'>
.processSet
in class AbstractIQModule
element
- incoming XMPP stanzaJaxmppException
public void register(String username, String password, String email, AsyncCallback asyncCallback) throws JaxmppException
JaxmppException
public void removeAccount(AsyncCallback asyncCallback) throws JaxmppException
JaxmppException
public void removeNotSupportedErrorHandler(InBandRegistrationModule.NotSupportedErrorHandler handler)
public void removeReceivedErrorHandler(InBandRegistrationModule.ReceivedErrorHandler handler)
public void removeReceivedRequestedFieldsHandler(InBandRegistrationModule.ReceivedRequestedFieldsHandler handler)
public void removeReceivedTimeoutHandler(InBandRegistrationModule.ReceivedTimeoutHandler handler)
public void start() throws JaxmppException
JaxmppException
Copyright © 2006–2016 Tigase. All rights reserved.