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()
ActionContextIF
getUser
in interface ActionContextIF
public Map getParameters()
ActionContextIF
getParameters
in interface ActionContextIF
public String[] getParameterValues(String paramName)
ActionContextIF
getParameterValues
in interface ActionContextIF
public String getParameterSingleValue(String paramName)
ActionContextIF
getParameterSingleValue
in interface ActionContextIF
public Collection getParameterNames()
ActionContextIF
getParameterNames
in interface ActionContextIF
public Collection getAllActions()
ActionContextIF
getAllActions
in interface ActionContextIF