public final class OGNLContextPropertyAccessor extends Object implements ognl.PropertyAccessor
Implementation of PropertyAccessor that allows OGNL to access the contents of IContext
implementations as if they were a Map.
Note this accessor also has to take care of variable access restrictions (like e.g. forbidding access to the request parameters in unescaped text or in preprocessing expressions).
Note a class with this name existed since 2.0, but it was completely reimplemented in Thymeleaf 3.0
PropertyAccessor| Modifier and Type | Field and Description |
|---|---|
static String |
RESTRICT_REQUEST_PARAMETERS |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(Map ognlContext,
Object target,
Object name) |
String |
getSourceAccessor(ognl.OgnlContext context,
Object target,
Object index) |
String |
getSourceSetter(ognl.OgnlContext context,
Object target,
Object index) |
void |
setProperty(Map context,
Object target,
Object name,
Object value) |
public static final String RESTRICT_REQUEST_PARAMETERS
public Object getProperty(Map ognlContext, Object target, Object name) throws ognl.OgnlException
getProperty in interface ognl.PropertyAccessorognl.OgnlExceptionpublic void setProperty(Map context, Object target, Object name, Object value) throws ognl.OgnlException
setProperty in interface ognl.PropertyAccessorognl.OgnlExceptionpublic String getSourceAccessor(ognl.OgnlContext context, Object target, Object index)
getSourceAccessor in interface ognl.PropertyAccessorCopyright © 2017 The THYMELEAF team. All rights reserved.