- All Implemented Interfaces:
- Interceptor, Serializable
public class ChainingInterceptor
- extends AbstractInterceptor
An interceptor that copies all the properties of every object in the value stack to the currently executing object,
except for any object that implements It is important to remember that this interceptor does nothing if there are no objects already on the stack.
This means two things: One, you can safely apply it to all your actions without any worry of adverse affects. Two, it
is up to you to ensure an object exists in the stack prior to invoking this action. The most typical way this is done
is through the use of the chain result type, which combines with this interceptor to make up the action
Unchainable. A collection of optional includes and
excludes may be provided to control how and which parameters are copied. Only includes or excludes may be
specified. Specifying both results in undefined behavior. See the javadocs for
java.util.Map, java.util.Collection, java.util.Collection) for more information.
Extending the interceptor:
There are no known extension points to this interceptor.
- excludes (optional) - the list of parameter names to exclude from copying (all others will be included).
- includes (optional) - the list of parameter names to include when copying (all others will be excluded).
<action name="someAction" class="com.examples.SomeAction">
<result name="success" type="chain">otherAction</result>
<action name="otherAction" class="com.examples.OtherAction">
- $Revision: 1142 $
- $Author: mrdon $, tm_jee ( tm_jee(at)yahoo.co.uk )
- See Also:
- Serialized Form
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static final Log _log
public String intercept(ActionInvocation invocation)
- Description copied from class:
- Override to handle interception
- Specified by:
intercept in interface
- Specified by:
intercept in class
- the return code, either returned from
ActionInvocation.invoke(), or from the interceptor itself.
Exception - any system-level error, as defined in
public Collection getExcludes()
public void setExcludes(Collection excludes)
public Collection getIncludes()
public void setIncludes(Collection includes)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.