Package com.unboundid.ldap.sdk
Interface PostConnectProcessor
-
- All Known Implementing Classes:
AggregatePostConnectProcessor
,StartAdministrativeSessionPostConnectProcessor
,StartTLSPostConnectProcessor
@Extensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface PostConnectProcessor
This interface provides the ability to perform custom processing immediately after creating an LDAP connection for use in a connection pool. It may be used, for example, to perform StartTLS negotiation on the connection before it is made available for use in the pool.
Implementations of this interface must be threadsafe to allow for the possibility of performing post-connect processing on different connections at the same time in separate threads.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processPostAuthenticatedConnection(LDAPConnection connection)
Performs any appropriate processing on the provided connection before making it available for use in a connection pool.void
processPreAuthenticatedConnection(LDAPConnection connection)
Performs any appropriate processing on the provided connection before making it available for use in a connection pool.
-
-
-
Method Detail
-
processPreAuthenticatedConnection
void processPreAuthenticatedConnection(LDAPConnection connection) throws LDAPException
Performs any appropriate processing on the provided connection before making it available for use in a connection pool. This method will be invoked immediately after the connection has been established but before any attempt has been made to perform any authentication.- Parameters:
connection
- The connection for which the processing is to be performed.- Throws:
LDAPException
- If a problem occurs during processing. If an exception is thrown, then the connection will be terminated and not used in the pool.
-
processPostAuthenticatedConnection
void processPostAuthenticatedConnection(LDAPConnection connection) throws LDAPException
Performs any appropriate processing on the provided connection before making it available for use in a connection pool. This method will be invoked immediately after any appropriate authentication has been performed on the connection.- Parameters:
connection
- The connection for which the processing is to be performed.- Throws:
LDAPException
- If a problem occurs during processing. If an exception is thrown, then the connection will be terminated and not used in the pool.
-
-