edu.vt.middleware.ldap.pool
Class CompareLdapValidator

java.lang.Object
  extended by edu.vt.middleware.ldap.pool.CompareLdapValidator
All Implemented Interfaces:
LdapValidator<Ldap>

public class CompareLdapValidator
extends Object
implements LdapValidator<Ldap>

CompareLdapValidator validates an ldap connection is healthy by performing a compare operation.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Field Summary
protected  org.apache.commons.logging.Log logger
          Log for this class.
 
Constructor Summary
CompareLdapValidator()
          Default constructor.
CompareLdapValidator(String dn, SearchFilter filter)
          Creates a new CompareLdapValidator with the supplied compare dn and filter.
 
Method Summary
 String getValidateDn()
          Returns the validate DN.
 SearchFilter getValidateFilter()
          Returns the validate filter.
 void setValidateDn(String s)
          Sets the validate DN.
 void setValidateFilter(SearchFilter filter)
          Sets the validate filter.
 boolean validate(Ldap l)
          Validate the supplied ldap object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Log for this class.

Constructor Detail

CompareLdapValidator

public CompareLdapValidator()
Default constructor.


CompareLdapValidator

public CompareLdapValidator(String dn,
                            SearchFilter filter)
Creates a new CompareLdapValidator with the supplied compare dn and filter.

Parameters:
dn - to use for compares
filter - to use for compares
Method Detail

getValidateDn

public String getValidateDn()
Returns the validate DN.

Returns:
validate DN

getValidateFilter

public SearchFilter getValidateFilter()
Returns the validate filter.

Returns:
validate filter

setValidateDn

public void setValidateDn(String s)
Sets the validate DN.

Parameters:
s - DN

setValidateFilter

public void setValidateFilter(SearchFilter filter)
Sets the validate filter.

Parameters:
filter - to compare with

validate

public boolean validate(Ldap l)
Validate the supplied ldap object.

Specified by:
validate in interface LdapValidator<Ldap>
Parameters:
l - ldap object
Returns:
whether validation was successful


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.