Package com.unboundid.ldap.sdk
Class AggregatePostConnectProcessor
- java.lang.Object
-
- com.unboundid.ldap.sdk.AggregatePostConnectProcessor
-
- All Implemented Interfaces:
PostConnectProcessor
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AggregatePostConnectProcessor extends java.lang.Object implements PostConnectProcessor
This class provides an implementation of a post-connect processor that makes it possible to invoke multiple post-connect processors as a single unit.
-
-
Constructor Summary
Constructors Constructor Description AggregatePostConnectProcessor(PostConnectProcessor... processors)Creates a new aggregate post-connect processor that will invoke the given set of post-connect processors in the order they are listed.AggregatePostConnectProcessor(java.util.Collection<? extends PostConnectProcessor> processors)Creates a new aggregate post-connect processor that will invoke the given set of post-connect processors in the order they are listed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessPostAuthenticatedConnection(LDAPConnection connection)Performs any appropriate processing on the provided connection before making it available for use in a connection pool.voidprocessPreAuthenticatedConnection(LDAPConnection connection)Performs any appropriate processing on the provided connection before making it available for use in a connection pool.
-
-
-
Constructor Detail
-
AggregatePostConnectProcessor
public AggregatePostConnectProcessor(PostConnectProcessor... processors)
Creates a new aggregate post-connect processor that will invoke the given set of post-connect processors in the order they are listed.- Parameters:
processors- The set of post-connect processors to be invoked.
-
AggregatePostConnectProcessor
public AggregatePostConnectProcessor(java.util.Collection<? extends PostConnectProcessor> processors)
Creates a new aggregate post-connect processor that will invoke the given set of post-connect processors in the order they are listed.- Parameters:
processors- The set of post-connect processors to be invoked.
-
-
Method Detail
-
processPreAuthenticatedConnection
public 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.- Specified by:
processPreAuthenticatedConnectionin interfacePostConnectProcessor- 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
public 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.- Specified by:
processPostAuthenticatedConnectionin interfacePostConnectProcessor- 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.
-
-