public class ConnectionManager extends Object implements Connector.StateChangedHandler, SeeOtherHostHandler, ContextAware
Connector.StateChangedHandler.StateChangedEventSeeOtherHostHandler.SeeOtherHostEvent| Modifier and Type | Field and Description |
|---|---|
static String |
URL_ON_FAILURE |
| Constructor and Description |
|---|
ConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionFailure(String seeHost,
boolean hostFailure) |
boolean |
initialize(Jaxmpp jaxmpp_) |
void |
onSeeOtherHost(String seeHost,
MutableBoolean handled) |
void |
onStateChanged(SessionObject sessionObject,
Connector.State oldState,
Connector.State newState)
Called when StateChangedEvent is
fired.
|
void |
setContext(Context context) |
public static final String URL_ON_FAILURE
public void connectionFailure(String seeHost, boolean hostFailure)
public boolean initialize(Jaxmpp jaxmpp_) throws JaxmppException
JaxmppExceptionpublic void onSeeOtherHost(String seeHost, MutableBoolean handled)
onSeeOtherHost in interface SeeOtherHostHandlerpublic void onStateChanged(SessionObject sessionObject, Connector.State oldState, Connector.State newState) throws JaxmppException
Connector.StateChangedHandleronStateChanged in interface Connector.StateChangedHandlersessionObject - session object related to connection.oldState - previous connector state.newState - new connector state.JaxmppExceptionpublic void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2018 Tigase. All rights reserved.