Class ContextTool
- java.lang.Object
-
- org.apache.velocity.tools.generic.SafeConfig
-
- org.apache.velocity.tools.generic.ContextTool
-
- org.apache.velocity.tools.view.ViewContextTool
-
- org.apache.velocity.tools.view.tools.ContextTool
-
@Deprecated public class ContextTool extends ViewContextTool
Deprecated.UseViewContextTool
-
-
Field Summary
Fields Modifier and Type Field Description static StringOLD_SAFE_MODE_KEYDeprecated.-
Fields inherited from class org.apache.velocity.tools.view.ViewContextTool
application, request, session
-
Fields inherited from class org.apache.velocity.tools.generic.ContextTool
context, toolbox
-
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
-
-
Constructor Summary
Constructors Constructor Description ContextTool()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconfigure(Map params)Deprecated.IfSafeConfig.isConfigLocked()returnstrue, then this method does nothing; otherwise, iffalse, this will create a newValueParserfrom the specified Map of params and callSafeConfig.configure(ValueParser)with it.voidinit(Object obj)Deprecated.-
Methods inherited from class org.apache.velocity.tools.view.ViewContextTool
configure, fillKeyset
-
Methods inherited from class org.apache.velocity.tools.generic.ContextTool
contains, get, getKeys, getThis, getToolbox, getValues
-
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig
isConfigLocked, isSafeMode, setLockConfig, setSafeMode
-
-
-
-
Field Detail
-
OLD_SAFE_MODE_KEY
@Deprecated public static final String OLD_SAFE_MODE_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@Deprecated public void init(Object obj)
Deprecated.
-
configure
public void configure(Map params)
Deprecated.Description copied from class:SafeConfigIfSafeConfig.isConfigLocked()returnstrue, then this method does nothing; otherwise, iffalse, this will create a newValueParserfrom the specified Map of params and callSafeConfig.configure(ValueParser)with it. Then this will check the parameters itself to find out whether or not the configuration for this tool should be put into safe mode or have its config locked. The safe mode value should be a boolean under the keySafeConfig.SAFE_MODE_KEYand the lock value should be a boolean under the keySafeConfig.LOCK_CONFIG_KEY.- Overrides:
configurein classSafeConfig
-
-