Package org.jboss.as.logging.filters
Class Filters
- java.lang.Object
-
- org.jboss.as.logging.filters.Filters
-
public class Filters extends Object
Filter utilities and constants.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description Filters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jboss.dmr.ModelNodefilterSpecToFilter(String value)Converts a filter spec to a legacyfilter.static StringfilterToFilterSpec(org.jboss.dmr.ModelNode value)Converts the legacyfilterto the new filter spec.static Collection<String>getCustomFilterNames(String filterSpec)Returns a collection of names of custom filters inside afilter-specattribute.
-
-
-
Field Detail
-
ACCEPT
public static final String ACCEPT
- See Also:
- Constant Field Values
-
ALL
public static final String ALL
- See Also:
- Constant Field Values
-
ANY
public static final String ANY
- See Also:
- Constant Field Values
-
DENY
public static final String DENY
- See Also:
- Constant Field Values
-
LEVELS
public static final String LEVELS
- See Also:
- Constant Field Values
-
LEVEL_CHANGE
public static final String LEVEL_CHANGE
- See Also:
- Constant Field Values
-
LEVEL_RANGE
public static final String LEVEL_RANGE
- See Also:
- Constant Field Values
-
MATCH
public static final String MATCH
- See Also:
- Constant Field Values
-
NOT
public static final String NOT
- See Also:
- Constant Field Values
-
SUBSTITUTE
public static final String SUBSTITUTE
- See Also:
- Constant Field Values
-
SUBSTITUTE_ALL
public static final String SUBSTITUTE_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
filterToFilterSpec
public static String filterToFilterSpec(org.jboss.dmr.ModelNode value) throws OperationFailedException
Converts the legacyfilterto the new filter spec.- Parameters:
value- the value to convert- Returns:
- the filter expression (filter spec) or an empty String the value is not defined
- Throws:
OperationFailedException- if a conversion error occurs
-
filterSpecToFilter
public static org.jboss.dmr.ModelNode filterSpecToFilter(String value)
Converts a filter spec to a legacyfilter.- Parameters:
value- the value to convert- Returns:
- the complex filter object
-
getCustomFilterNames
public static Collection<String> getCustomFilterNames(String filterSpec)
Returns a collection of names of custom filters inside afilter-specattribute.- Parameters:
filterSpec- the filter specification string- Returns:
- a collection of custom filter names
-
-