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 FilterFunction
Default filter function.private static final Constructor<?>
Custom filter parser constructor.private static final String
Ldap filter function system property.private static final org.slf4j.Logger
Logger for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterFunction
TheFILTER_FUNCTION_PROPERTY
property is checked and that class is loaded if provided.static Filter
Parse 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_PROPERTY
property is checked and that class is loaded if provided. Otherwise theDefaultFilterFunction
is returned.- Returns:
- default filter function
-
parse
Parse the supplied filter string.- Parameters:
filter
- to parse- Returns:
- search filter
- Throws:
FilterParseException
- if filter is invalid
-