Package org.ldaptive.filter
Class AbstractFilterFunction
- java.lang.Object
-
- org.ldaptive.filter.AbstractFilterFunction
-
- All Implemented Interfaces:
FilterFunction
- Direct Known Subclasses:
DefaultFilterFunction,RegexFilterFunction
public abstract class AbstractFilterFunction extends java.lang.Object implements FilterFunction
Base implementation to parse an LDAP search filter string.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description AbstractFilterFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Filterparse(java.lang.String filter)Parses the supplied string representation of a filter.protected abstract FilterparseFilterComp(java.lang.String filter)Inspects the supplied filter string and creates the type of filter it represents.
-
-
-
Method Detail
-
parse
public Filter parse(java.lang.String filter) throws FilterParseException
Description copied from interface:FilterFunctionParses the supplied string representation of a filter.- Specified by:
parsein interfaceFilterFunction- Parameters:
filter- to parse- Returns:
- parsed filter
- Throws:
FilterParseException- if the supplied filter is invalid
-
parseFilterComp
protected abstract Filter parseFilterComp(java.lang.String filter) throws FilterParseException
Inspects the supplied filter string and creates the type of filter it represents.- Parameters:
filter- to inspect- Returns:
- search filter
- Throws:
FilterParseException- if filter is invalid
-
-