Class LookupLdapConnectionValidator
java.lang.Object
org.apache.directory.ldap.client.api.LookupLdapConnectionValidator
- All Implemented Interfaces:
LdapConnectionValidator
An implementation of
LdapConnectionValidator that attempts a simple
lookup on the rootDSE.- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(LdapConnection connection) Returns true ifconnectionis connected, authenticated, and a lookup on the rootDSE returns a non-null response.
-
Constructor Details
-
LookupLdapConnectionValidator
public LookupLdapConnectionValidator()Default constructor
-
-
Method Details
-
validate
Returns true ifconnectionis connected, authenticated, and a lookup on the rootDSE returns a non-null response.- Specified by:
validatein interfaceLdapConnectionValidator- Parameters:
connection- The connection to validate- Returns:
- True, if the connection is still valid
-