edu.vt.middleware.ldap.pool
public class CompareLdapValidator extends java.lang.Object implements LdapValidator<Ldap>
CompareLdapValidator
validates an ldap connection is healthy by
performing a compare operation.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
Constructor and Description |
---|
CompareLdapValidator()
Default constructor.
|
CompareLdapValidator(java.lang.String dn,
SearchFilter filter)
Creates a new
CompareLdapValidator with the supplied compare
dn and filter. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValidateDn()
Returns the validate DN.
|
SearchFilter |
getValidateFilter()
Returns the validate filter.
|
void |
setValidateDn(java.lang.String s)
Sets the validate DN.
|
void |
setValidateFilter(SearchFilter filter)
Sets the validate filter.
|
boolean |
validate(Ldap l)
Validate the supplied ldap object.
|
public CompareLdapValidator()
public CompareLdapValidator(java.lang.String dn, SearchFilter filter)
CompareLdapValidator
with the supplied compare
dn and filter.dn
- to use for comparesfilter
- to use for comparespublic java.lang.String getValidateDn()
public SearchFilter getValidateFilter()
public void setValidateDn(java.lang.String s)
s
- DNpublic void setValidateFilter(SearchFilter filter)
filter
- to compare withpublic boolean validate(Ldap l)
validate
in interface LdapValidator<Ldap>
l
- ldap objectCopyright © 2014. All Rights Reserved.