org.jabber.jabberbeans
Class ConnectionBeanSSL

java.lang.Object
  |
  +--org.jabber.jabberbeans.ConnectionBean
        |
        +--org.jabber.jabberbeans.ConnectionBeanSSL
All Implemented Interfaces:
PacketListenerRegistrar, java.io.Serializable

public class ConnectionBeanSSL
extends ConnectionBean

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jabber.jabberbeans.ConnectionBean
ConnectionBean.InputStreamInterface, ConnectionBean.OutputStreamInterface, ConnectionBean.XMLStreamMonitor
 
Field Summary
static int DEFAULT_SSL_PORT
           
 
Fields inherited from class org.jabber.jabberbeans.ConnectionBean
CONNECTION_TIMEOUT, DEFAULT_PORT, DEFAULT_XMLSTREAM_NS, DisableAutoHeader
 
Constructor Summary
ConnectionBeanSSL()
           
 
Method Summary
 void connect(java.net.InetAddress host)
          connect attempts to establish a connection to the default port on the specified server.
 void connect(java.net.InetAddress host, int port)
          connect attempts to establish a server connection to a specified port.
 java.lang.String[] getCiphers(javax.net.ssl.SSLSocket s)
           
 
Methods inherited from class org.jabber.jabberbeans.ConnectionBean
addConnectionListener, addPacketListener, connect, connect, connect, connect, connect, delConnectionListener, delPacketListener, disableStreamHeader, disconnect, fireReceivedPacket, fireSentPacket, fireUnsentPacket, getAddress, getConnectionState, getParser, getSessionID, onInputDeath, onOutputDeath, received, send, setConnectionState, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SSL_PORT

public static final int DEFAULT_SSL_PORT
See Also:
Constant Field Values
Constructor Detail

ConnectionBeanSSL

public ConnectionBeanSSL()
Method Detail

getCiphers

public java.lang.String[] getCiphers(javax.net.ssl.SSLSocket s)

connect

public void connect(java.net.InetAddress host)
             throws java.io.IOException,
                    javax.net.ssl.SSLException
Description copied from class: ConnectionBean
connect attempts to establish a connection to the default port on the specified server.

Overrides:
connect in class ConnectionBean
Parameters:
host - InetAddress of the server
Throws:
java.io.IOException - socket error in backend
javax.net.ssl.SSLException

connect

public void connect(java.net.InetAddress host,
                    int port)
             throws java.io.IOException,
                    javax.net.ssl.SSLException
Description copied from class: ConnectionBean
connect attempts to establish a server connection to a specified port. This implementation takes a hostname and port.

Overrides:
connect in class ConnectionBean
Parameters:
host - InetAddress of the server
port - an int specifying the port number
Throws:
java.io.IOException - socket error in backend
javax.net.ssl.SSLException