com.netscape.certsrv.connector
Interface IHttpConnFactory


public interface IHttpConnFactory

Maintains a pool of connections to to a Remote Authority. Utilized by the IHttpConnector interface. Multiple threads use this interface to utilize and release the Ldap connection resources. This factory will maintain a list of Http type connections to the remote host.

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

Method Summary
 IHttpConnection getConn()
          Request access to a Ldap connection from the pool.
 void returnConn(IHttpConnection conn)
          Return connection to the factory.
 

Method Detail

getConn

IHttpConnection getConn()
                        throws EBaseException
Request access to a Ldap connection from the pool.

Returns:
Ldap connection object. connection is not available
Throws:
EBaseException - if any error occurs, such as a

returnConn

void returnConn(IHttpConnection conn)
                throws EBaseException
Return connection to the factory. mandatory after a getConn().

Parameters:
conn - Ldap connection object to be returned to the free list of the pool.
Throws:
EBaseException - On any failure to return the connection.