public abstract class ClassFilter extends Object
Modifier and Type | Field and Description |
---|---|
static ClassFilter |
DEFAULT
A set of sensible default filtering rules to apply,
unless the context guarantees the trust between two channels.
|
static String |
FILE_OVERRIDE_LOCATION_PROPERTY
Property to set to override the blacklist used by {
DEFAULT with a different set. |
static ClassFilter |
NONE
No filtering whatsoever.
|
Constructor and Description |
---|
ClassFilter() |
Modifier and Type | Method and Description |
---|---|
Class |
check(Class c) |
String |
check(String name) |
protected boolean |
isBlacklisted(Class c) |
protected boolean |
isBlacklisted(String name) |
public static final String FILE_OVERRIDE_LOCATION_PROPERTY
DEFAULT
with a different set.
The location should point to a a file containing regular expressions (one per line) of classes to blacklist.
If this property is set but the file can not be read the default blacklist will be used.public static final ClassFilter DEFAULT
public static final ClassFilter NONE
Copyright © 2017. All rights reserved.