com.opensymphony.xwork2.interceptor
Class StaticParametersInterceptor
java.lang.Object
  
com.opensymphony.xwork2.interceptor.AbstractInterceptor
      
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor
- All Implemented Interfaces: 
 - Interceptor, Serializable
 
public class StaticParametersInterceptor
- extends AbstractInterceptor
 
 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="staticParams">
          <param name="parse">true</param>
     </interceptor-ref>
     <result name="success">good_result.ftl</result>
 </action>
 
 
- Author:
 
  - Patrick Lightbody
 
- See Also:
 - Serialized Form
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
parse
private boolean parse
LOG
private static final Logger LOG
StaticParametersInterceptor
public StaticParametersInterceptor()
setParse
public void setParse(String value)
 
intercept
public String intercept(ActionInvocation invocation)
                 throws Exception
- Description copied from class: 
AbstractInterceptor 
- Override to handle interception
- Specified by:
 intercept in interface Interceptor- Specified by:
 intercept in class AbstractInterceptor
 
- Parameters:
 invocation - the action invocation
- Returns:
 - the return code, either returned from 
ActionInvocation.invoke(), or from the interceptor itself.
 - Throws:
 Exception - any system-level error, as defined in Action.execute().
 
 
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.