org.springframework.ldap.support.filter
Class WhitespaceWildcardsFilter
java.lang.Object
org.springframework.ldap.support.filter.AbstractFilter
org.springframework.ldap.support.filter.CompareFilter
org.springframework.ldap.support.filter.EqualsFilter
org.springframework.ldap.support.filter.WhitespaceWildcardsFilter
- All Implemented Interfaces:
- Filter
public class WhitespaceWildcardsFilter
- extends EqualsFilter
This filter automatically converts all whitespace to wildcards (*). The
following code:
WhitespaceWildcardsFilter filter = new WhitespaceWildcardsFilter("cn",
"Some CN");
System.out.println(filter.ecode());
would result in: (cn=*Some*CN*)
- Author:
- Adam Skogman, Mattias Arthursson
Method Summary |
protected java.lang.String |
encodeValue(java.lang.String value)
Encodes a value according to the rules for this filter. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
WhitespaceWildcardsFilter
public WhitespaceWildcardsFilter(java.lang.String attribute,
java.lang.String value)
encodeValue
protected java.lang.String encodeValue(java.lang.String value)
- Encodes a value according to the rules for this filter.
- Overrides:
encodeValue
in class CompareFilter
- Parameters:
value
- Value to encode.
- Returns:
- Encoded value.
Copyright � 2002-2006. All Rights Reserved.