Package org.ldaptive.filter
Class FilterParser
java.lang.Object
org.ldaptive.filter.FilterParser
Encapsulates a
FilterFunction and exposes a convenience static method for parsing filters. The filter
function used by this class can be set using the system property FILTER_FUNCTION_PROPERTY.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FilterFunctionDefault filter function.private static final Constructor<?>Custom filter parser constructor.private static final StringLdap filter function system property.private static final org.slf4j.LoggerLogger for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterFunctionTheFILTER_FUNCTION_PROPERTYproperty is checked and that class is loaded if provided.static FilterParse the supplied filter string.
-
Field Details
-
FILTER_FUNCTION_PROPERTY
Ldap filter function system property.- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGERLogger for this class. -
FILTER_FUNCTION
Default filter function. -
FILTER_FUNCTION_CONSTRUCTOR
Custom filter parser constructor.
-
-
Constructor Details
-
FilterParser
private FilterParser()Default constructor.
-
-
Method Details
-
getFilterFunction
TheFILTER_FUNCTION_PROPERTYproperty is checked and that class is loaded if provided. Otherwise theDefaultFilterFunctionis returned.- Returns:
- default filter function
-
parse
Parse the supplied filter string.- Parameters:
filter- to parse- Returns:
- search filter
- Throws:
FilterParseException- if filter is invalid
-