org.thymeleaf.context
Class ForbiddenContextVariableRestriction
Object
org.thymeleaf.context.ForbiddenContextVariableRestriction
- All Implemented Interfaces:
- IContextVariableRestriction
public class ForbiddenContextVariableRestriction
- extends Object
- implements IContextVariableRestriction
Forbids access to a specific variable in the map.
- Since:
- 2.0.16
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForbiddenContextVariableRestriction
public ForbiddenContextVariableRestriction(String targetVariableName)
ForbiddenContextVariableRestriction
public ForbiddenContextVariableRestriction(String targetVariableName,
String message)
checkAccess
public void checkAccess(VariablesMap<?,?> variablesMap,
String variableName)
- Specified by:
checkAccess
in interface IContextVariableRestriction
Copyright © 2013 The THYMELEAF team. All Rights Reserved.