com.atlassian.confluence.xwork
Class ConfluenceValidationInterceptor
java.lang.Object
com.opensymphony.xwork.interceptor.AroundInterceptor
com.atlassian.confluence.xwork.ConfluenceValidationInterceptor
- All Implemented Interfaces:
- Interceptor
public class ConfluenceValidationInterceptor
- extends AroundInterceptor
Copy of the XWork validation interceptor that delegates to our own ActionValidatorManager. The
default XWork manager contained some really nasty caching logic that we want to avoid.
Contains code that is Copyright (c) 2002-2003 by OpenSymphony, used under the Apache license.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceValidationInterceptor
public ConfluenceValidationInterceptor()
after
protected void after(ActionInvocation dispatcher,
String result)
throws Exception
- Does nothing in this implementation.
- Specified by:
after
in class AroundInterceptor
- Throws:
Exception
before
protected void before(ActionInvocation invocation)
throws Exception
- Gets the current action and its context and calls
ActionValidatorManager.validate(java.lang.Object, java.lang.String)
.
- Specified by:
before
in class AroundInterceptor
- Parameters:
invocation
- the execution state of the Action.
- Throws:
Exception
- if an error occurs validating the action.