public class ActionContext extends Object implements ActionContextIF
javax.servlet.ServletRequest to store to maps (one for
parameter value pairs and one for attribute value pairs).| Modifier and Type | Field and Description |
|---|---|
protected Parameters |
params |
protected UserIF |
user |
| Constructor and Description |
|---|
ActionContext(UserIF user,
Parameters params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection |
getAllActions()
INTERNAL: Returns all the ActionData objects created for this
request, whether triggered or not.
|
Collection |
getParameterNames()
INTERNAL: Gets all parameter names stored in this map.
|
Map |
getParameters()
INTERNAL: Gets all the parameter key value pairs.
|
String |
getParameterSingleValue(String paramName)
INTERNAL: Checks that for the given parameter name exactly one
value is available and returns this.
|
String[] |
getParameterValues(String paramName)
INTERNAL: Gets the parameter values (as a String array) belonging
to the given parameter name.
|
UserIF |
getUser()
INTERNAL: Gets the user object who executed the requests and in
which authority the consequenctly executed actions run.
|
int |
hashCode() |
String |
toString() |
protected Parameters params
protected UserIF user
public ActionContext(UserIF user, Parameters params)
public UserIF getUser()
ActionContextIFgetUser in interface ActionContextIFpublic Map getParameters()
ActionContextIFgetParameters in interface ActionContextIFpublic String[] getParameterValues(String paramName)
ActionContextIFgetParameterValues in interface ActionContextIFpublic String getParameterSingleValue(String paramName)
ActionContextIFgetParameterSingleValue in interface ActionContextIFpublic Collection getParameterNames()
ActionContextIFgetParameterNames in interface ActionContextIFpublic Collection getAllActions()
ActionContextIFgetAllActions in interface ActionContextIF