Package org.springframework.ldap.filter
Class LikeFilter
- java.lang.Object
-
- org.springframework.ldap.filter.AbstractFilter
-
- org.springframework.ldap.filter.CompareFilter
-
- org.springframework.ldap.filter.EqualsFilter
-
- org.springframework.ldap.filter.LikeFilter
-
- All Implemented Interfaces:
Filter
public class LikeFilter extends EqualsFilter
This filter allows the user to specify wildcards (*) by not escaping them in the filter. The following code:LikeFilter filter = new LikeFilter("cn", "foo*"); System.out.println(filter.ecode());
would result in:(cn=foo*)
-
-
Constructor Summary
Constructors Constructor Description LikeFilter(java.lang.String attribute, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
encodeValue(java.lang.String value)
Override to perform special encoding in subclass.-
Methods inherited from class org.springframework.ldap.filter.EqualsFilter
getCompareString
-
Methods inherited from class org.springframework.ldap.filter.CompareFilter
encode, equals, hashCode
-
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
-
-
-
-
Method Detail
-
encodeValue
protected java.lang.String encodeValue(java.lang.String value)
Description copied from class:CompareFilter
Override to perform special encoding in subclass.- Overrides:
encodeValue
in classCompareFilter
- Parameters:
value
- the value to encode.- Returns:
- properly escaped value.
-
-