Package org.ldaptive.filter
Class FilterParser
- java.lang.Object
-
- org.ldaptive.filter.FilterParser
-
public final class FilterParser extends java.lang.ObjectEncapsulates aFilterFunctionand 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 FilterFunctiongetFilterFunction()TheFILTER_FUNCTION_PROPERTYproperty is checked and that class is loaded if provided.static Filterparse(java.lang.String filter)Parse the supplied filter string.
-
-
-
Method Detail
-
getFilterFunction
public static FilterFunction getFilterFunction()
TheFILTER_FUNCTION_PROPERTYproperty is checked and that class is loaded if provided. Otherwise theDefaultFilterFunctionis 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
-
-