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, set
public 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
JaxmppException
public static void waitForLoginFinish(Jaxmpp jaxmpp, long timeout) 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()
This wrapper for SessionObject.
getConnectionConfiguration
in class JaxmppCore
public Executor getExecutor()
public void setExecutor(Executor executor)
executor
- executorpublic void login(boolean sync) throws JaxmppException
JaxmppException
public void login() throws JaxmppException
login
in class JaxmppCore
JaxmppException
protected void checkTimeouts() throws JaxmppException
JaxmppException
protected Connector createConnector() throws JaxmppException
JaxmppException
protected void init()
init
in class JaxmppCore
protected void modulesInit()
modulesInit
in class JaxmppCore
protected void onConnectorStopped()
onConnectorStopped
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–2023 Tigase. All rights reserved.