tigase.jaxmpp.j2se
Class Jaxmpp

java.lang.Object
  extended by tigase.jaxmpp.core.client.JaxmppCore
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class tigase.jaxmpp.core.client.JaxmppCore
tigase.jaxmpp.core.client.JaxmppCore.JaxmppEvent
 
Field Summary
static String CONNECTOR_TYPE
           
static String EXCEPTION_KEY
           
static String LOGIN_TIMEOUT_KEY
           
static String SYNCHRONIZED_MODE
           
 
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)
           
 
Method Summary
protected  void checkTimeouts()
           
protected  tigase.jaxmpp.core.client.Connector createConnector()
           
 void disconnect()
           
 void disconnect(boolean snc)
           
 ConnectionConfiguration getConnectionConfiguration()
          
 Executor getExecutor()
           
 void login()
           
 void login(boolean sync)
          Connects to server.
protected  void modulesInit()
           
protected  void onException(tigase.jaxmpp.core.client.exceptions.JaxmppException e)
           
protected  void onResourceBinded(tigase.jaxmpp.core.client.xmpp.modules.ResourceBinderModule.ResourceBindEvent be)
           
protected  void onStanzaReceived(tigase.jaxmpp.core.client.xml.Element stanza)
           
protected  void onStreamError(tigase.jaxmpp.core.client.Connector.ConnectorEvent be)
           
protected  void onStreamTerminated(tigase.jaxmpp.core.client.Connector.ConnectorEvent be)
           
 void setExecutor(Executor executor)
          Sets custom Executor for processing incoming stanzas in modules.
 
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
 

Field Detail

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
Constructor Detail

Jaxmpp

public Jaxmpp()

Jaxmpp

public Jaxmpp(tigase.jaxmpp.core.client.SessionObject sessionObject)
Method Detail

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.