com.opensymphony.xwork.interceptor
Class ParametersInterceptor
java.lang.Object
com.opensymphony.xwork.interceptor.AroundInterceptor
com.opensymphony.xwork.interceptor.ParametersInterceptor
- All Implemented Interfaces:
- Interceptor
- public class ParametersInterceptor
- extends AroundInterceptor
An interceptor that gets the parameters Map from the action context and calls
setValue
on
the value stack with the property name being the key in the map, and the value
being the associated value in the map.
This interceptor sets up a few special conditions before setting the values on
the stack:
- It turns on null object handling, meaning if the property "foo" is null and
value is set on "foo.bar", then the foo object will be created as explained
in
InstantiatingNullHandler
.
- It also turns off the ability to allow methods to be executed, which is done
as a security protection. This includes both static and non-static methods,
as explained in
XWorkMethodAccessor
.
- Turns on reporting of type conversion errors, which are otherwise not normally
reported. It is important to report them here because this input is expected
to be directly from the user.
- Author:
- Patrick Lightbody
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParametersInterceptor
public ParametersInterceptor()
after
protected void after(ActionInvocation dispatcher,
String result)
throws Exception
- Description copied from class:
AroundInterceptor
- Called after the invocation has been executed.
- Specified by:
after
in class AroundInterceptor
- Parameters:
result
- the result value returned by the invocation
- Throws:
Exception
before
protected void before(ActionInvocation invocation)
throws Exception
- Description copied from class:
AroundInterceptor
- Called before the invocation has been executed.
- Specified by:
before
in class AroundInterceptor
- Throws:
Exception
acceptableName
protected boolean acceptableName(String name)