public class Jaxmpp
extends tigase.jaxmpp.core.client.JaxmppCore
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR_TYPE |
static String |
EXCEPTION_KEY |
static String |
LOGIN_TIMEOUT_KEY |
| Constructor and Description |
|---|
Jaxmpp() |
Jaxmpp(tigase.jaxmpp.core.client.SessionObject sessionObject) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTimeouts() |
protected tigase.jaxmpp.core.client.Connector |
createConnector() |
void |
disconnect() |
void |
disconnect(boolean snc) |
void |
disconnect(Boolean snc,
boolean resetStreamManagement) |
void |
execute(Runnable runnable) |
ConnectionConfiguration |
getConnectionConfiguration() |
Executor |
getExecutor() |
protected void |
init() |
void |
login()
Connects to server.
|
void |
login(boolean sync) |
protected void |
modulesInit() |
protected void |
onConnectorStopped() |
protected void |
onException(tigase.jaxmpp.core.client.exceptions.JaxmppException e) |
protected void |
onResourceBindSuccess(tigase.jaxmpp.core.client.JID bindedJID) |
protected void |
onStreamError(tigase.jaxmpp.core.client.connector.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(tigase.jaxmpp.core.client.SessionObject sessionObject)
public static void waitForDisconnectFinish(Jaxmpp jaxmpp, long timeout) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic static void waitForLoginFinish(Jaxmpp jaxmpp, long timeout) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void disconnect()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
disconnect in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void disconnect(boolean snc)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void disconnect(Boolean snc, boolean resetStreamManagement) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void execute(Runnable runnable)
execute in class tigase.jaxmpp.core.client.JaxmppCorepublic ConnectionConfiguration getConnectionConfiguration()
getConnectionConfiguration in class tigase.jaxmpp.core.client.JaxmppCorepublic Executor getExecutor()
public void setExecutor(Executor executor)
executor - executorpublic void login(boolean sync)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void login()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
login in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void checkTimeouts()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected tigase.jaxmpp.core.client.Connector createConnector()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void init()
init in class tigase.jaxmpp.core.client.JaxmppCoreprotected void modulesInit()
modulesInit in class tigase.jaxmpp.core.client.JaxmppCoreprotected void onConnectorStopped()
onConnectorStopped in class tigase.jaxmpp.core.client.JaxmppCoreprotected void onException(tigase.jaxmpp.core.client.exceptions.JaxmppException e)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onException in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onResourceBindSuccess(tigase.jaxmpp.core.client.JID bindedJID)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onResourceBindSuccess in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onStreamError(tigase.jaxmpp.core.client.connector.StreamError condition,
Throwable caught)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onStreamError in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onStreamResumed(Long h, String previd) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onStreamResumed in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onStreamTerminated()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onStreamTerminated in class tigase.jaxmpp.core.client.JaxmppCoretigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2021 Tigase. All rights reserved.