java.lang.Object | |
↳ | webwork.action.ActionContext |
Handles the context of each invoked action while providing an abstraction layer for both servlet and non servlet based applications.
Information is associated with the action's thread so it can be accessed from anywhere by calling a static method. The context is initially set by the dispatcher.Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_NAME | ||||||||||
String | APPLICATION | ||||||||||
String | LOCALE | ||||||||||
String | PARAMETERS | ||||||||||
String | PRINCIPAL | ||||||||||
String | SESSION | ||||||||||
String | SINGLE_VALUE_PARAMETERS |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a value that is stored in the current ActionContext buy doing a lookup using the value's key.
| |||||||||||
Returns a Map of the ServletContext when in a servlet environment or a generic application level Map otherwise.
| |||||||||||
Returns the ActionContext specific to the current thread.
| |||||||||||
Returns the Locale of the current request in a servlet environment or the default Locale in other environments.
| |||||||||||
Return multipart request for HttpServletRequest.
| |||||||||||
Returns the name of the current Action.
| |||||||||||
Returns a Map of the HttpServletRequest parameters when in a servlet environment or a generic Map of parameters
otherwise.
| |||||||||||
Returns the current user's security Principal.
| |||||||||||
Returns the HttpServletRequest object when in a servlet environment.
| |||||||||||
Returns the HttpServletResponse when in a servlet environment.
| |||||||||||
Returns the ServletContext when in a servlet environment.
| |||||||||||
Returns the HttpSession when in a servlet environment or a generic session map otherwise.
| |||||||||||
Get the current ActionContext parameters.
| |||||||||||
Returns the ValueStack specific to the current thread.
| |||||||||||
Stores a value in the current ActionContext.
| |||||||||||
Set an application level Map.
| |||||||||||
Set the current locale.
| |||||||||||
Stores the name of the current Action in the ActionContext.
| |||||||||||
Set a Map of parameters.
| |||||||||||
Set the current user's security Principal.
| |||||||||||
Set the HttpServletRequest.
| |||||||||||
Set the HttpServletResponse.
| |||||||||||
Set the ServletContext.
| |||||||||||
Set a session Map.
| |||||||||||
Set a Map of single value parameters.
| |||||||||||
Set the ValueStack.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a value that is stored in the current ActionContext buy doing a lookup using the value's key.
key | The key used to find the value. |
---|
Returns a Map of the ServletContext when in a servlet environment or a generic application level Map otherwise.
Returns the ActionContext specific to the current thread.
Returns the Locale of the current request in a servlet environment or the default Locale in other environments.
Return multipart request for HttpServletRequest.
Returns the name of the current Action.
Returns a Map of the HttpServletRequest parameters when in a servlet environment or a generic Map of parameters otherwise.
Returns the current user's security Principal.
Returns the HttpServletRequest object when in a servlet environment.
Returns the HttpServletResponse when in a servlet environment.
Returns the ServletContext when in a servlet environment.
Returns the HttpSession when in a servlet environment or a generic session map otherwise.
Get the current ActionContext parameters. Each Map entry is a String.
Returns the ValueStack specific to the current thread.
Stores a value in the current ActionContext. The value can be looked up using the key.
key | The key of the value. |
---|---|
value | The value to be stored. |
Set the current locale.
locale | current locale |
---|
Stores the name of the current Action in the ActionContext.
name | The name of the current action. |
---|
Set a Map of parameters.
parameters | The parameters for the current action context. |
---|
Set the current user's security Principal.
principal | the current user's security Principal |
---|
Set the HttpServletRequest.
Set the HttpServletResponse.
Set the ServletContext.
Set a Map of single value parameters.
parameters | for the current action context. |
---|