@Deprecated public class ContextTool extends ViewContextTool
ViewContextTool
Modifier and Type | Field and Description |
---|---|
static String |
OLD_SAFE_MODE_KEY
Deprecated.
|
application, request, session
context, toolbox
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
Constructor and Description |
---|
ContextTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Map params)
Deprecated.
If
SafeConfig.isConfigLocked() returns true , then this method
does nothing; otherwise, if false , this will create a new
ValueParser from the specified Map of params and call
SafeConfig.configure(ValueParser) with it. |
void |
init(Object obj)
Deprecated.
|
configure, fillKeyset
contains, get, getKeys, getThis, getToolbox, getValues
isConfigLocked, isSafeMode, setLockConfig, setSafeMode
@Deprecated public static final String OLD_SAFE_MODE_KEY
@Deprecated public void init(Object obj)
public void configure(Map params)
SafeConfig
SafeConfig.isConfigLocked()
returns true
, then this method
does nothing; otherwise, if false
, this will create a new
ValueParser
from the specified Map of params and call
SafeConfig.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 key
SafeConfig.SAFE_MODE_KEY
and the lock value should be a boolean
under the key SafeConfig.LOCK_CONFIG_KEY
.configure
in class SafeConfig
Copyright © 2002–2014 Apache Software Foundation. All rights reserved.