public class CompareLdapValidator extends 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(String dn,
SearchFilter filter)
Creates a new
CompareLdapValidator with the supplied compare
dn and filter. |
Modifier and Type | Method and Description |
---|---|
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.
|
public CompareLdapValidator()
public CompareLdapValidator(String dn, SearchFilter filter)
CompareLdapValidator
with the supplied compare
dn and filter.dn
- to use for comparesfilter
- to use for comparespublic String getValidateDn()
public SearchFilter getValidateFilter()
public void setValidateDn(String s)
s
- DNpublic void setValidateFilter(SearchFilter filter)
filter
- to compare withpublic boolean validate(Ldap l)
validate
in interface LdapValidator<Ldap>
l
- ldap objectCopyright © 2016. All rights reserved.