com.opensymphony.xwork.interceptor
Class StaticParametersInterceptor
java.lang.Object
com.opensymphony.xwork.interceptor.AroundInterceptor
com.opensymphony.xwork.interceptor.StaticParametersInterceptor
- All Implemented Interfaces:
- Interceptor, java.io.Serializable
public class StaticParametersInterceptor
- extends AroundInterceptor
This interceptor populates the action with the static parameters defined in the action configuration. If the action
implements Parameterizable
, a map of the static parameters will be also be passed directly to the action.
Parameters are typically defined with <param> elements within xwork.xml.
Interceptor parameters:
Extending the interceptor:
There are no extension points to this interceptor.
Example code:
<action name="someAction" class="com.examples.SomeAction">
<interceptor-ref name="static-params">
<param name="parse">true</param>
</interceptor-ref>
<result name="success">good_result.ftl</result>
</action>
- Author:
- Patrick Lightbody
- See Also:
- Serialized Form
Method Summary |
protected void |
after(ActionInvocation invocation,
java.lang.String result)
Called after the invocation has been executed. |
protected void |
before(ActionInvocation invocation)
Called before the invocation has been executed. |
void |
setParse(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticParametersInterceptor
public StaticParametersInterceptor()
setParse
public void setParse(java.lang.String value)
after
protected void after(ActionInvocation invocation,
java.lang.String result)
throws java.lang.Exception
- Description copied from class:
AroundInterceptor
- Called after the invocation has been executed.
- Specified by:
after
in class AroundInterceptor
result
- the result value returned by the invocation
- Throws:
java.lang.Exception
before
protected void before(ActionInvocation invocation)
throws java.lang.Exception
- Description copied from class:
AroundInterceptor
- Called before the invocation has been executed.
- Specified by:
before
in class AroundInterceptor
- Throws:
java.lang.Exception