tigase.jaxmpp.j2se
Class ConnectionConfiguration

java.lang.Object
  extended by tigase.jaxmpp.core.client.ConnectionConfiguration
      extended by tigase.jaxmpp.j2se.ConnectionConfiguration

public class ConnectionConfiguration
extends tigase.jaxmpp.core.client.ConnectionConfiguration

Connection configuration object.


Nested Class Summary
static class ConnectionConfiguration.ConnectionType
           
 
Field Summary
 
Fields inherited from class tigase.jaxmpp.core.client.ConnectionConfiguration
sessionObject
 
Method Summary
 void setBoshService(String boshService)
          Set BOSH Service URL.
 void setConnectionType(ConnectionConfiguration.ConnectionType connectionType)
          Set connection type.
 void setDisableTLS(boolean disabled)
          Enable or disable TLS usage.
 void setPort(int port)
          Set server port.
 void setServer(String server)
          Set server hostname.
 void setUseSASL(boolean useSASL)
          Enable o disable SASL.
 
Methods inherited from class tigase.jaxmpp.core.client.ConnectionConfiguration
setCredentialsCallback, setDomain, setResource, setUserJID, setUserJID, setUserPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setBoshService

public void setBoshService(String boshService)
Set BOSH Service URL. Required if connection type is bosh.

Parameters:
boshService - BOSH service URL

setConnectionType

public void setConnectionType(ConnectionConfiguration.ConnectionType connectionType)
Set connection type.

Parameters:
connectionType - connection type

setDisableTLS

public void setDisableTLS(boolean disabled)
Enable or disable TLS usage.

Parameters:
disabled - true is TLS should be disabled.

setPort

public void setPort(int port)
Set server port. Default is 5222

Parameters:
port -

setServer

public void setServer(String server)
Set server hostname. Not needed if it is equals to hostname of JID.

Parameters:
server - hostname

setUseSASL

public void setUseSASL(boolean useSASL)
Enable o disable SASL. Default true.

Parameters:
useSASL - false is only non-SASL authentication (XEP-0078) should be available.


Copyright © 2006-2012 Tigase. All Rights Reserved.