tigase.jaxmpp.j2se
Class Jaxmpp
java.lang.Object
tigase.jaxmpp.core.client.JaxmppCore
tigase.jaxmpp.j2se.Jaxmpp
public class Jaxmpp
- extends tigase.jaxmpp.core.client.JaxmppCore
Main library class for using in standalone, Android and other J2SE compatible
application.
| Nested classes/interfaces inherited from class tigase.jaxmpp.core.client.JaxmppCore |
tigase.jaxmpp.core.client.JaxmppCore.JaxmppEvent |
| Fields inherited from class tigase.jaxmpp.core.client.JaxmppCore |
AUTOADD_STANZA_ID_KEY, Connected, connector, Disconnected, log, modulesManager, observable, processor, resourceBindListener, sessionLogic, sessionObject, stanzaReceivedListener, streamErrorListener, streamTerminateListener, writer |
|
Constructor Summary |
Jaxmpp()
|
Jaxmpp(tigase.jaxmpp.core.client.SessionObject sessionObject)
|
| Methods inherited from class tigase.jaxmpp.core.client.JaxmppCore |
addListener, addListener, createChat, getConnector, getModule, getModulesManager, getPresence, getProperties, getRoster, getSessionObject, isConnected, isSecure, keepalive, removeAllListeners, removeListener, removeListener, send, send, send, sendMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTOR_TYPE
public static final String CONNECTOR_TYPE
- See Also:
- Constant Field Values
EXCEPTION_KEY
public static final String EXCEPTION_KEY
- See Also:
- Constant Field Values
LOGIN_TIMEOUT_KEY
public static final String LOGIN_TIMEOUT_KEY
- See Also:
- Constant Field Values
SYNCHRONIZED_MODE
public static final String SYNCHRONIZED_MODE
- See Also:
- Constant Field Values
Jaxmpp
public Jaxmpp()
Jaxmpp
public Jaxmpp(tigase.jaxmpp.core.client.SessionObject sessionObject)
checkTimeouts
protected void checkTimeouts()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
createConnector
protected tigase.jaxmpp.core.client.Connector createConnector()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
disconnect
public void disconnect()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
disconnect in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
disconnect
public void disconnect(boolean snc)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
getConnectionConfiguration
public ConnectionConfiguration getConnectionConfiguration()
-
- Specified by:
getConnectionConfiguration in class tigase.jaxmpp.core.client.JaxmppCore
getExecutor
public Executor getExecutor()
login
public void login()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
login in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
login
public void login(boolean sync)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Connects to server.
- Parameters:
sync - true to start method in sync mode. In sync mode
whole connecting process will be done in this method.
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
modulesInit
protected void modulesInit()
- Overrides:
modulesInit in class tigase.jaxmpp.core.client.JaxmppCore
onException
protected void onException(tigase.jaxmpp.core.client.exceptions.JaxmppException e)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
onException in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
onResourceBinded
protected void onResourceBinded(tigase.jaxmpp.core.client.xmpp.modules.ResourceBinderModule.ResourceBindEvent be)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
onResourceBinded in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
onStanzaReceived
protected void onStanzaReceived(tigase.jaxmpp.core.client.xml.Element stanza)
- Specified by:
onStanzaReceived in class tigase.jaxmpp.core.client.JaxmppCore
onStreamError
protected void onStreamError(tigase.jaxmpp.core.client.Connector.ConnectorEvent be)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
onStreamError in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
onStreamTerminated
protected void onStreamTerminated(tigase.jaxmpp.core.client.Connector.ConnectorEvent be)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
- Specified by:
onStreamTerminated in class tigase.jaxmpp.core.client.JaxmppCore
- Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException
setExecutor
public void setExecutor(Executor executor)
- Sets custom Executor for processing incoming stanzas in
modules.
- Parameters:
executor - executor
Copyright © 2006-2013 Tigase. All Rights Reserved.