AllowSet
@Deprecated public static final class JexlSandbox.WhiteSet extends JexlSandbox.Names
Constructor and Description |
---|
WhiteSet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(String name)
Adds a name to this set.
|
boolean |
alias(String name,
String alias)
Adds an alias to a name to this set.
|
protected JexlSandbox.Names |
copy() |
String |
get(String name)
Whether a given name is allowed or not.
|
public WhiteSet()
protected JexlSandbox.Names copy()
copy
in class JexlSandbox.Names
public boolean add(String name)
JexlSandbox.Names
add
in class JexlSandbox.Names
name
- the name to addpublic boolean alias(String name, String alias)
JexlSandbox.Names
This only has an effect on allow lists.
alias
in class JexlSandbox.Names
name
- the name to aliasalias
- the aliaspublic String get(String name)
JexlSandbox.Names
get
in class JexlSandbox.Names
name
- the method/property name to checkCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.