Package org.ldaptive.filter
Class FilterParser
- java.lang.Object
-
- org.ldaptive.filter.FilterParser
-
public final class FilterParser extends java.lang.Object
Encapsulates aFilterFunction
and exposes a convenience static method for parsing filters. The filter function used by this class can be set using the system propertyFILTER_FUNCTION_PROPERTY
.- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterFunction
getFilterFunction()
TheFILTER_FUNCTION_PROPERTY
property is checked and that class is loaded if provided.static Filter
parse(java.lang.String filter)
Parse the supplied filter string.
-
-
-
Method Detail
-
getFilterFunction
public static FilterFunction getFilterFunction()
TheFILTER_FUNCTION_PROPERTY
property is checked and that class is loaded if provided. Otherwise theDefaultFilterFunction
is returned.- Returns:
- default filter function
-
parse
public static Filter parse(java.lang.String filter) throws FilterParseException
Parse the supplied filter string.- Parameters:
filter
- to parse- Returns:
- search filter
- Throws:
FilterParseException
- if filter is invalid
-
-