org.apache.struts2.interceptor |
|
Java Source File Name | Type | Comment |
ApplicationAware.java | Interface | Actions that want to be aware of the application Map object should implement this interface.
This will give them access to a Map where they can put objects that should be available
to other parts of the application. |
BackgroundProcess.java | Class | Background thread to be executed by the ExecuteAndWaitInterceptor. |
CheckboxInterceptor.java | Class |
Looks for a hidden identification field that specifies the original value of the checkbox. |
CookieInterceptor.java | Class |
The aim of this interceptor is to set values in the stack/action based on cookie name/value
of interest. |
CookieInterceptorTest.java | Class | |
CookiesAware.java | Interface | |
CreateSessionInterceptor.java | Class |
This interceptor creates the HttpSession. |
CreateSessionInterceptorTest.java | Class | Test case for CreateSessionInterceptor. |
ExecuteAndWaitDelayAction.java | Class | Used by ExecuteAndWaitInterceptorTest. |
ExecuteAndWaitInterceptor.java | Class |
The ExecuteAndWaitInterceptor is great for running long-lived actions in the background while showing the user a nice
progress meter. |
ExecuteAndWaitInterceptorTest.java | Class | Test case for ExecuteAndWaitInterceptor. |
FileUploadInterceptor.java | Class |
Interceptor that is based off of
MultiPartRequestWrapper , which is automatically applied for any request that
includes a file. |
FileUploadInterceptorTest.java | Class | Test case for FileUploadInterceptor. |
MessageStoreInterceptor.java | Class |
An interceptor to store
ValidationAware action's messages / errors and field errors into
Http Session, such that it will be retrieveable at a later stage. |
MessageStoreInterceptorTest.java | Class | Test case for MessageStoreInterceptor. |
NoParameters.java | Interface | This marker interface should be implemented by actions that do not want any parameters set on
them automatically. |
ParameterAware.java | Interface | This interface gives actions an alternative way of receiving input parameters. |
PrincipalAware.java | Interface | Actions that want access to the Principal information from HttpServletRequest object
should implement this interface. |
PrincipalProxy.java | Interface | Proxy interface used together with PrincipalAware interface. |
ProfilingActivationInterceptor.java | Class |
Allows profiling to be enabled or disabled via request parameters, when
devMode is enabled. |
RequestAware.java | Interface | Actions that want access to the current serlvet request attributes should implement this interface.
This interface is only relevant if the Action is used in a servlet environment.
Note that using this interface makes the Action tied to a servlet environment, so it should be
avoided if possible since things like unit testing will become more difficult. |
RolesInterceptor.java | Class | This interceptor ensures that the action
will only be executed if the user has the correct role. |
RolesInterceptorTest.java | Class | |
ScopeInterceptor.java | Class |
This is designed to solve a few simple issues related to wizard-like functionality in Struts. |
ServletConfigInterceptor.java | Class |
An interceptor which sets action properties based on the interfaces an action implements. |
ServletConfigInterceptorTest.java | Class | Unit test for
ServletConfigInterceptor . |
ServletRequestAware.java | Interface | All Actions that want to have access to the servlet request object must implement this interface.
This interface is only relevant if the Action is used in a servlet environment. |
ServletResponseAware.java | Interface | All Actions that want to have access to the servlet response object must implement this interface.
This interface is only relevant if the Action is used in a servlet environment.
Note that using this interface makes the Action tied to a servlet environment, so it should be
avoided if possible since things like unit testing will become more difficult. |
SessionAware.java | Interface | Actions that want access to the user's HTTP session should implement this interface.
This will give them access to a Map where they can put objects that can be made available
to subsequent requests.
Typical uses may be cached user data such as name, or a shopping cart. |
StrutsConversionErrorInterceptor.java | Class |
This interceptor extends
ConversionErrorInterceptor but only adds conversion errors from the ActionContext to
the field errors of the action if the field value is not null, "", or {""} (a size 1 String array with only an empty
String). |
StrutsConversionErrorInterceptorTest.java | Class | |
TokenInterceptor.java | Class |
Ensures that only one request per token is processed. |
TokenInterceptorTest.java | Class | |
TokenSessionStoreInterceptor.java | Class |
This interceptor builds off of the
TokenInterceptor , providing advanced logic for handling invalid tokens.
Unlike the normal token interceptor, this interceptor will attempt to provide intelligent fail-over in the event of
multiple requests using the same session. |
TokenSessionStoreInterceptorTest.java | Class | Unit test for
TokenSessionStoreInterceptor . |