public class Filters extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT |
static String |
ALL |
static String |
ANY |
static String |
DENY |
static String |
LEVEL_CHANGE |
static String |
LEVEL_RANGE |
static String |
LEVELS |
static String |
MATCH |
static String |
NOT |
static String |
SUBSTITUTE |
static String |
SUBSTITUTE_ALL |
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.dmr.ModelNode |
filterSpecToFilter(String value)
Converts a
filter spec to a legacy filter. |
static String |
filterToFilterSpec(org.jboss.dmr.ModelNode value)
Converts the legacy
filter to the new filter
spec. |
static void |
registerFilter(String filterSpec,
PathAddress currentAddress)
Registers any possible custom filters with the current handler or logger address.
|
static void |
unregisterFilter(String filterSpec,
PathAddress currentAddress)
Unregisters any possible custom filters with the current handler or logger address.
|
public static final String ACCEPT
public static final String ALL
public static final String ANY
public static final String DENY
public static final String LEVELS
public static final String LEVEL_CHANGE
public static final String LEVEL_RANGE
public static final String MATCH
public static final String NOT
public static final String SUBSTITUTE
public static final String SUBSTITUTE_ALL
public static String filterToFilterSpec(org.jboss.dmr.ModelNode value) throws OperationFailedException
filter to the new filter
spec.value - the value to convertOperationFailedException - if a conversion error occurspublic static org.jboss.dmr.ModelNode filterSpecToFilter(String value)
filter spec to a legacy filter.value - the value to convertpublic static void registerFilter(String filterSpec, PathAddress currentAddress)
filterSpec - the filter expressioncurrentAddress - the current addresspublic static void unregisterFilter(String filterSpec, PathAddress currentAddress)
filterSpec - the filter expressioncurrentAddress - the current addressCopyright © 2020 JBoss by Red Hat. All rights reserved.