public interface OgnlGuard
OgnlUtil immediately after parsing any
 expression.| Modifier and Type | Field and Description | 
|---|---|
| static String | EXPR_BLOCKED | 
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | isBlocked(String expr)Determines whether an OGNL expression should be blocked based on validation done on both the raw expression and
 the parsed tree. | 
| 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. | 
| default Object | parseExpression(String expr)Parses an OGNL expression and returns the resulting tree only if the expression is not blocked as per defined
 validation rules in  isRawExpressionBlocked(java.lang.String)andisParsedTreeBlocked(java.lang.Object). | 
static final String EXPR_BLOCKED
default boolean isBlocked(String expr) throws ognl.OgnlException
expr - OGNL expressionognl.OgnlExceptiondefault Object parseExpression(String expr) throws ognl.OgnlException
isRawExpressionBlocked(java.lang.String) and isParsedTreeBlocked(java.lang.Object).expr - OGNL expressionEXPR_BLOCKED if the expression should be blockedognl.OgnlExceptionboolean isRawExpressionBlocked(String expr)
expr - OGNL expressionboolean isParsedTreeBlocked(Object tree)
tree - parsed OGNL treeCopyright © 2000–2025 Apache Software Foundation. All rights reserved.