public class ConnectionManager extends Object implements Connector.StateChangedHandler, SeeOtherHostHandler, ContextAware
Connector.StateChangedHandler.StateChangedEvent
SeeOtherHostHandler.SeeOtherHostEvent
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 void setContext(Context context)
setContext
in interface ContextAware
public boolean initialize(Jaxmpp jaxmpp_) throws JaxmppException
JaxmppException
public void onStateChanged(SessionObject sessionObject, Connector.State oldState, Connector.State newState) throws JaxmppException
Connector.StateChangedHandler
onStateChanged
in interface Connector.StateChangedHandler
sessionObject
- session object related to connection.oldState
- previous connector state.newState
- new connector state.JaxmppException
public void onSeeOtherHost(String seeHost, MutableBoolean handled)
onSeeOtherHost
in interface SeeOtherHostHandler
public void connectionFailure(String seeHost, boolean hostFailure)
Copyright © 2006–2016 Tigase. All rights reserved.