public class Jaxmpp extends JaxmppCore
JaxmppCore.DefaultPacketWriter, JaxmppCore.LoggedInHandler, JaxmppCore.LoggedOutHandler| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR_TYPE |
static String |
EXCEPTION_KEY |
static String |
LOGIN_TIMEOUT_KEY |
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 server.
|
void |
login(boolean sync) |
protected void |
modulesInit() |
protected void |
onConnectorStopped() |
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.
|
static void |
waitForDisconnectFinish(Jaxmpp jaxmpp,
long timeout) |
static void |
waitForLoginFinish(Jaxmpp jaxmpp,
long timeout) |
createEventBus, get, getConnector, getContext, getEventBus, getModule, getModulesManager, getProperties, getSessionObject, isConnected, isSecure, keepalive, onConnectorStateChanged, onStanzaReceived, onUnacknowledged, send, send, send, setpublic static final String CONNECTOR_TYPE
public static final String EXCEPTION_KEY
public static final String LOGIN_TIMEOUT_KEY
public Jaxmpp()
public Jaxmpp(SessionObject sessionObject)
public static void waitForDisconnectFinish(Jaxmpp jaxmpp, long timeout) throws JaxmppException
JaxmppExceptionpublic static void waitForLoginFinish(Jaxmpp jaxmpp, long timeout) throws JaxmppException
JaxmppExceptionpublic void disconnect()
throws JaxmppException
JaxmppCoredisconnect in class JaxmppCoreJaxmppExceptionpublic void disconnect(boolean snc)
throws JaxmppException
JaxmppExceptionpublic void disconnect(Boolean snc, boolean resetStreamManagement) throws JaxmppException
JaxmppExceptionpublic void execute(Runnable runnable)
JaxmppCoreexecute in class JaxmppCorerunnable - task to execute.public ConnectionConfiguration getConnectionConfiguration()
This wrapper for SessionObject.
getConnectionConfiguration in class JaxmppCorepublic Executor getExecutor()
public void setExecutor(Executor executor)
executor - executorpublic void login(boolean sync)
throws JaxmppException
JaxmppExceptionpublic void login()
throws JaxmppException
login in class JaxmppCoreJaxmppExceptionprotected void checkTimeouts()
throws JaxmppException
JaxmppExceptionprotected Connector createConnector() throws JaxmppException
JaxmppExceptionprotected void init()
init in class JaxmppCoreprotected void modulesInit()
modulesInit in class JaxmppCoreprotected void onConnectorStopped()
onConnectorStopped in class JaxmppCoreprotected void onException(JaxmppException e) throws JaxmppException
onException in class JaxmppCoreJaxmppExceptionprotected void onResourceBindSuccess(JID bindedJID) throws JaxmppException
onResourceBindSuccess in class JaxmppCoreJaxmppExceptionprotected void onStreamError(StreamError condition, Throwable caught) throws JaxmppException
onStreamError in class JaxmppCoreJaxmppExceptionprotected void onStreamResumed(Long h, String previd) throws JaxmppException
onStreamResumed in class JaxmppCoreJaxmppExceptionprotected void onStreamTerminated()
throws JaxmppException
onStreamTerminated in class JaxmppCoreJaxmppExceptionCopyright © 2006–2020 Tigase. All rights reserved.