public class SafeParametersInterceptor extends Object implements com.opensymphony.xwork2.interceptor.Interceptor
Parameters that set a value on an action directly will be allowed. However:
Portions of this class are copied from XWork under the Apache license, Copyright (c) 2002-2003 by OpenSymphony
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
SafeParametersInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
before(com.opensymphony.xwork2.ActionInvocation invocation) |
void |
destroy() |
void |
init() |
String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation) |
protected boolean |
shouldNotIntercept(com.opensymphony.xwork2.ActionInvocation actionInvocation)
The implementation of this method should evalutate if the passed in actionInvocation.getAction()
is of a type
NoParameters if it is, we should not bother
intercepting. |
public void init()
init
in interface com.opensymphony.xwork2.interceptor.Interceptor
public void destroy()
destroy
in interface com.opensymphony.xwork2.interceptor.Interceptor
public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
intercept
in interface com.opensymphony.xwork2.interceptor.Interceptor
Exception
protected boolean shouldNotIntercept(com.opensymphony.xwork2.ActionInvocation actionInvocation)
NoParameters
if it is, we should not bother
intercepting.
The reason for this abstract class is so we are compatible with both 1.0.3 and 1.2.3 of XWork.
actionInvocation
- the action invocation being interceptedNoParameters
Copyright © 2016 Atlassian. All rights reserved.