com.netscape.certsrv.client.connection
Interface IConnectionFactory


public interface IConnectionFactory

Interface for all connection factory. Primarily act as the abstraction layer for different kind of connection factory.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 IConnection create(java.lang.String host, int port)
          Creates connection using the host and port
 

Method Detail

create

IConnection create(java.lang.String host,
                   int port)
                   throws java.io.IOException,
                          java.net.UnknownHostException
Creates connection using the host and port

Parameters:
host - The host to connect to
port - The port to connect to
Returns:
The created connection
Throws:
java.io.IOException - On an IO Error
java.net.UnknownHostException - If the host can't be resolved