| java.lang.Object edu.iu.uis.eden.test.web.framework.ScriptState
ScriptState | public class ScriptState (Code) | | Encapsulate script state, in a Map of variables which can be accessed using
Jakarta Commons BeanUtils property syntax.
There are a few "special" variables:
- USER
- The user as whom to submit requests
- BACKDOORID
- The backdoor id
- RESOURCE_PREFIX
- If set, this is prefixed to any unqualifed resource lookups
- REQUEST
- A Map of request parameters
- RESPONSE
- A Map of response variables
- CONTEXT
- The caller-supplied context of the script (if any)
- FILTERS
- Named filters (if any, by default: DUPLICATE_SPACES, LEADING_SPACES, TRAILING_SPACES, DUPLICATE_NEWLINES, TRANSIENT_OUTPUT, CANONICALIZE)
This class provides access to "properties" which are abstract names that can be resolved in several ways: via
the variable map, as a resource in the classloader, as a url, and as literal text.
See Also: edu.iu.uis.eden.test.web.framework.actions.SubmitAction See Also: for information on RESPONSE Map contents author: Aaron Hamid (arh14 at cornell dot edu) |
CANONICALIZE_FILTER | final public static Filter CANONICALIZE_FILTER(Code) | | |
CANONICALIZE_FILTER_NAME | final public static String CANONICALIZE_FILTER_NAME(Code) | | |
DUPLICATE_NEWLINES | final public static Pattern DUPLICATE_NEWLINES(Code) | | |
DUPLICATE_NEWLINES_FILTER | final public static Filter DUPLICATE_NEWLINES_FILTER(Code) | | |
DUPLICATE_SPACES | final public static Pattern DUPLICATE_SPACES(Code) | | |
DUPLICATE_SPACES_FILTER | final public static Filter DUPLICATE_SPACES_FILTER(Code) | | |
LEADING_SPACES_FILTER | final public static Filter LEADING_SPACES_FILTER(Code) | | |
RESOURCE_PREFIX | final public static String RESOURCE_PREFIX(Code) | | |
TRAILING_SPACES_FILTER | final public static Filter TRAILING_SPACES_FILTER(Code) | | |
TRANSIENT_OUTPUT | final public static Pattern TRANSIENT_OUTPUT(Code) | | |
TRANSIENT_OUTPUT_FILTER | final public static Filter TRANSIENT_OUTPUT_FILTER(Code) | | |
ScriptState | public ScriptState()(Code) | | |
getLiteral | public Object getLiteral(String name)(Code) | | Resolves the specified name as a literal (just returns it)
Parameters: name - the literal name the literal name |
getResource | public Object getResource(String name)(Code) | | Resolves the specified name as a resource
Parameters: name - the resource name resource contents if found, null otherwise |
getURL | public Object getURL(String name)(Code) | | Resolves the specified name as a url
Parameters: name - the url url contents if found, null otherwise |
getVariable | public Object getVariable(String name)(Code) | | Resolves the specified name as a variable
Parameters: name - the variable name variable value if found, null otherwise |
reset | public void reset()(Code) | | |
retrieveProperty | public Object retrieveProperty(String name)(Code) | | Resolves the specified name as a qualified property
Parameters: name - the qualified property name value if found, null otherwise |
retrieveProperty | public Object retrieveProperty(String name, PropertyScheme defaultScheme)(Code) | | Resolves the specified name as an unqualified property
Parameters: name - the potentially unqualified property name Parameters: defaultScheme - the default scheme to use if the property is unqualified value if found, null otherwise |
retrieveProperty | public Object retrieveProperty(Property prop, PropertyScheme defaultScheme)(Code) | | Resolves the specified name as an unqualified property
Parameters: prop - the potentially unqualified property Parameters: defaultScheme - the default scheme to use if the property is unqualified value if found, null otherwise |
retrieveProperty | public Object retrieveProperty(Property prop)(Code) | | Resolves the specified name as a qualified property
Parameters: prop - the qualified property value if found, null otherwise |
setBackdoorId | public void setBackdoorId(String backdoorId)(Code) | | |
setContext | public void setContext(Map context)(Code) | | |
setResourcePrefix | public void setResourcePrefix(String prefix)(Code) | | |
setVariable | public void setVariable(String name, Object value)(Code) | | Sets a key/value pair in the state map root
Parameters: name - name of the variable Parameters: value - value of the variable |
|
|