Modifier and Type | Field and Description |
---|---|
protected Set<String> |
excludedNodeTypes |
EXPR_BLOCKED
Constructor and Description |
---|
StrutsOgnlGuard() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkNode(ognl.Node node) |
protected boolean |
containsExcludedNodeType(ognl.Node node) |
boolean |
isParsedTreeBlocked(Object tree)
Determines whether a parsed OGNL tree should be blocked based on some validation rules.
|
boolean |
isRawExpressionBlocked(String expr)
Determines whether an OGNL expression should be blocked based on validation done on only the raw expression,
without parsing the tree.
|
protected boolean |
recurseNodes(ognl.Node node) |
protected boolean |
skipTreeCheck(ognl.Node tree) |
void |
useExcludedNodeTypes(String excludedNodeTypes) |
protected void |
validateExcludedNodeTypes(Set<String> incomingExcludedNodeTypes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBlocked, parseExpression
public void useExcludedNodeTypes(String excludedNodeTypes)
protected void validateExcludedNodeTypes(Set<String> incomingExcludedNodeTypes) throws ConfigurationException
ConfigurationException
public boolean isRawExpressionBlocked(String expr)
OgnlGuard
isRawExpressionBlocked
in interface OgnlGuard
expr
- OGNL expressionpublic boolean isParsedTreeBlocked(Object tree)
OgnlGuard
isParsedTreeBlocked
in interface OgnlGuard
tree
- parsed OGNL treeprotected boolean skipTreeCheck(ognl.Node tree)
protected boolean recurseNodes(ognl.Node node)
protected boolean checkNode(ognl.Node node)
protected boolean containsExcludedNodeType(ognl.Node node)
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.