public class Jaxmpp extends JaxmppCore
JaxmppCore.ConnectedHandler, JaxmppCore.DisconnectedHandler
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTOR_TYPE |
static String |
EXCEPTION_KEY |
static String |
LOGIN_TIMEOUT_KEY |
static String |
SYNCHRONIZED_MODE |
AUTOADD_STANZA_ID_KEY, connector, context, defaultXMPPStream, eventBus, log, modulesManager, processor, properties, sessionLogic, sessionObject, streamsManager, writer
Constructor and Description |
---|
Jaxmpp() |
Jaxmpp(SessionObject sessionObject) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTimeouts() |
protected Connector |
createConnector() |
void |
disconnect()
Closes XMPP session.
|
void |
disconnect(boolean snc) |
void |
disconnect(boolean snc,
boolean resetStreamManagement) |
void |
execute(Runnable runnable)
Executes task in executor.
|
ConnectionConfiguration |
getConnectionConfiguration()
Returns configurator.
|
Executor |
getExecutor() |
protected void |
init() |
void |
login()
Connects to XMPP server.
|
void |
login(boolean sync)
Connects to server.
|
protected void |
modulesInit() |
protected void |
onException(JaxmppException e) |
protected void |
onResourceBindSuccess(JID bindedJID) |
protected void |
onStreamError(StreamError condition,
Throwable caught) |
protected void |
onStreamResumed(Long h,
String previd) |
protected void |
onStreamTerminated() |
void |
setExecutor(Executor executor)
Sets custom Executor for processing incoming stanzas in
modules.
|
createEventBus, get, getConnector, getContext, getEventBus, getModule, getModulesManager, getProperties, getSessionObject, isConnected, isSecure, keepalive, onConnectorStopped, onStanzaReceived, onUnacknowledged, send, send, send, set
public static final String CONNECTOR_TYPE
public static final String EXCEPTION_KEY
public static final String LOGIN_TIMEOUT_KEY
public static final String SYNCHRONIZED_MODE
public Jaxmpp()
public Jaxmpp(SessionObject sessionObject)
protected void checkTimeouts() throws JaxmppException
JaxmppException
protected Connector createConnector() throws JaxmppException
JaxmppException
public void disconnect() throws JaxmppException
JaxmppCore
disconnect
in class JaxmppCore
JaxmppException
public void disconnect(boolean snc) throws JaxmppException
JaxmppException
public void disconnect(boolean snc, boolean resetStreamManagement) throws JaxmppException
JaxmppException
public void execute(Runnable runnable)
JaxmppCore
execute
in class JaxmppCore
runnable
- task to execute.public ConnectionConfiguration getConnectionConfiguration()
getConnectionConfiguration
in class JaxmppCore
public Executor getExecutor()
protected void init()
init
in class JaxmppCore
public void login() throws JaxmppException
JaxmppCore
login
in class JaxmppCore
JaxmppException
public void login(boolean sync) throws JaxmppException
sync
- true
to start method in sync mode. In sync mode
whole connecting process will be done in this method.JaxmppException
protected void modulesInit()
modulesInit
in class JaxmppCore
protected void onException(JaxmppException e) throws JaxmppException
onException
in class JaxmppCore
JaxmppException
protected void onResourceBindSuccess(JID bindedJID) throws JaxmppException
onResourceBindSuccess
in class JaxmppCore
JaxmppException
protected void onStreamError(StreamError condition, Throwable caught) throws JaxmppException
onStreamError
in class JaxmppCore
JaxmppException
protected void onStreamResumed(Long h, String previd) throws JaxmppException
onStreamResumed
in class JaxmppCore
JaxmppException
protected void onStreamTerminated() throws JaxmppException
onStreamTerminated
in class JaxmppCore
JaxmppException
Copyright © 2006–2015 Tigase. All rights reserved.