Class StandardExpressionExecutionContext


  • public final class StandardExpressionExecutionContext
    extends Object

    Context class that contains several conditions that might be of interest to the expression executor (like for instance, whether the expression comes from preprocessing or not)

    Note a class with this name existed since 2.0.16, but it was completely reimplemented in Thymeleaf 3.0

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Method Detail

      • getRestrictVariableAccess

        public boolean getRestrictVariableAccess()
      • getRestrictInstantiationAndStatic

        public boolean getRestrictInstantiationAndStatic()
        Restricts whether this execution context restricts the instantiation of new objects and the access to static classes.
        Returns:
        Whether this restriction should be applied or not.
        Since:
        3.0.12
      • getForbidUnsafeExpressionResults

        public boolean getForbidUnsafeExpressionResults()
      • getPerformTypeConversion

        public boolean getPerformTypeConversion()