org.jivesoftware.sparkimpl.settings
Class SSLXMPPConnection

java.lang.Object
  extended by org.jivesoftware.smack.XMPPConnection
      extended by org.jivesoftware.sparkimpl.settings.SSLXMPPConnection

public class SSLXMPPConnection
extends org.jivesoftware.smack.XMPPConnection

Creates an SSL connection to a XMPP server.

Author:
Matt Tucker

Field Summary
 
Fields inherited from class org.jivesoftware.smack.XMPPConnection
DEBUG_ENABLED, saslAuthentication
 
Constructor Summary
SSLXMPPConnection(java.lang.String host)
          Creates a new SSL connection to the specified host on the default SSL port (5223).
SSLXMPPConnection(java.lang.String host, int port)
          Creates a new SSL connection to the specified host on the specified port.
SSLXMPPConnection(java.lang.String host, int port, java.lang.String serviceName)
           
 
Method Summary
 boolean isSecureConnection()
           
 
Methods inherited from class org.jivesoftware.smack.XMPPConnection
addConnectionCreationListener, addConnectionListener, addPacketListener, addPacketWriterInterceptor, addPacketWriterListener, connect, createPacketCollector, disconnect, getAccountManager, getChatManager, getConfiguration, getConnectionID, getHost, getPort, getRoster, getSASLAuthentication, getServiceName, getUser, isAnonymous, isAuthenticated, isConnected, isUsingCompression, isUsingTLS, login, login, login, loginAnonymously, removeConnectionCreationListener, removeConnectionListener, removePacketListener, removePacketWriterInterceptor, removePacketWriterListener, sendPacket, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLXMPPConnection

public SSLXMPPConnection(java.lang.String host)
                  throws org.jivesoftware.smack.XMPPException
Creates a new SSL connection to the specified host on the default SSL port (5223).

Parameters:
host - the XMPP host.
Throws:
org.jivesoftware.smack.XMPPException - if an error occurs while trying to establish the connection. Two possible errors can occur which will be wrapped by an XMPPException -- UnknownHostException (XMPP error code 504), and IOException (XMPP error code 502). The error codes and wrapped exceptions can be used to present more appropiate error messages to end-users.

SSLXMPPConnection

public SSLXMPPConnection(java.lang.String host,
                         int port)
                  throws org.jivesoftware.smack.XMPPException
Creates a new SSL connection to the specified host on the specified port.

Parameters:
host - the XMPP host.
port - the port to use for the connection (default XMPP SSL port is 5223).
Throws:
org.jivesoftware.smack.XMPPException - if an error occurs while trying to establish the connection. Two possible errors can occur which will be wrapped by an XMPPException -- UnknownHostException (XMPP error code 504), and IOException (XMPP error code 502). The error codes and wrapped exceptions can be used to present more appropiate error messages to end-users.

SSLXMPPConnection

public SSLXMPPConnection(java.lang.String host,
                         int port,
                         java.lang.String serviceName)
                  throws org.jivesoftware.smack.XMPPException
Throws:
org.jivesoftware.smack.XMPPException
Method Detail

isSecureConnection

public boolean isSecureConnection()
Overrides:
isSecureConnection in class org.jivesoftware.smack.XMPPConnection