public class Jaxmpp extends JaxmppCore
JaxmppCore.LoggedInHandler, JaxmppCore.LoggedOutHandler
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 |
execute(Runnable r)
Executes task in executor.
|
ConnectionConfiguration |
getConnectionConfiguration()
Returns configurator.
|
PacketWriter |
getWriter() |
protected void |
init() |
void |
login()
Connects to XMPP server.
|
protected void |
login(String boshUrl) |
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 |
storeSession() |
createEventBus, get, getConnector, getContext, getEventBus, getModule, getModulesManager, getProperties, getSessionObject, isConnected, isSecure, keepalive, modulesInit, onConnectorStopped, onStanzaReceived, onUnacknowledged, send, send, send, set
public Jaxmpp()
public Jaxmpp(SessionObject sessionObject)
protected void checkTimeouts() throws JaxmppException
JaxmppException
protected Connector createConnector()
public void disconnect() throws JaxmppException
JaxmppCore
disconnect
in class JaxmppCore
JaxmppException
public void execute(Runnable r)
JaxmppCore
execute
in class JaxmppCore
r
- task to execute.public ConnectionConfiguration getConnectionConfiguration()
getConnectionConfiguration
in class JaxmppCore
public PacketWriter getWriter()
protected void init()
init
in class JaxmppCore
public void login() throws JaxmppException
JaxmppCore
login
in class JaxmppCore
JaxmppException
protected void login(String boshUrl) throws JaxmppException
JaxmppException
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
public void storeSession()
Copyright © 2006–2016 Tigase. All rights reserved.