Package org.shredzone.commons.view.util
Class ViewPathEvaluationContext
- java.lang.Object
-
- org.springframework.expression.spel.support.StandardEvaluationContext
-
- org.shredzone.commons.view.util.ViewPathEvaluationContext
-
- All Implemented Interfaces:
org.springframework.expression.EvaluationContext
@ParametersAreNonnullByDefault public class ViewPathEvaluationContext extends org.springframework.expression.spel.support.StandardEvaluationContext
AnEvaluationContext
that offers additional string functions.simplify
- simplifies a unicode string so it can be used in URLs (see
PathUtils.simplify(String)
) suffix
- suggests a suffix for a content type (see
PathUtils.suffix(String)
) encode
- url encodes a string (see
PathUtils.encode(String)
)
- Author:
- Richard "Shred" Körber
-
-
Constructor Summary
Constructors Constructor Description ViewPathEvaluationContext(PathContext context)
Instantiates a new view path evaluation context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
init()
Initializes the evaluation context.-
Methods inherited from class org.springframework.expression.spel.support.StandardEvaluationContext
addConstructorResolver, addMethodResolver, addPropertyAccessor, getBeanResolver, getConstructorResolvers, getMethodResolvers, getOperatorOverloader, getPropertyAccessors, getRootObject, getTypeComparator, getTypeConverter, getTypeLocator, lookupVariable, registerFunction, registerMethodFilter, removeConstructorResolver, removeMethodResolver, removePropertyAccessor, setBeanResolver, setConstructorResolvers, setMethodResolvers, setOperatorOverloader, setPropertyAccessors, setRootObject, setRootObject, setTypeComparator, setTypeConverter, setTypeLocator, setVariable, setVariables
-
-
-
-
Constructor Detail
-
ViewPathEvaluationContext
public ViewPathEvaluationContext(PathContext context)
Instantiates a new view path evaluation context.- Parameters:
context
- properties and variables to be used
-
-
Method Detail
-
init
protected void init() throws NoSuchMethodException
Initializes the evaluation context. Subclasses may override this method to register more functions.- Throws:
NoSuchMethodException
-
-