com.atlassian.confluence.xwork
Class ConfluenceValidationInterceptor

java.lang.Object
  extended by com.opensymphony.xwork.interceptor.AroundInterceptor
      extended by com.atlassian.confluence.xwork.ConfluenceValidationInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor

public class ConfluenceValidationInterceptor
extends com.opensymphony.xwork.interceptor.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.


Field Summary
 
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
log
 
Constructor Summary
ConfluenceValidationInterceptor()
           
 
Method Summary
protected  void after(com.opensymphony.xwork.ActionInvocation dispatcher, String result)
          Does nothing in this implementation.
protected  void before(com.opensymphony.xwork.ActionInvocation invocation)
          Gets the current action and its context and calls ActionValidatorManager.validate(java.lang.Object, java.lang.String).
 
Methods inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
destroy, init, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceValidationInterceptor

public ConfluenceValidationInterceptor()
Method Detail

after

protected void after(com.opensymphony.xwork.ActionInvocation dispatcher,
                     String result)
              throws Exception
Does nothing in this implementation.

Specified by:
after in class com.opensymphony.xwork.interceptor.AroundInterceptor
Throws:
Exception

before

protected void before(com.opensymphony.xwork.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 com.opensymphony.xwork.interceptor.AroundInterceptor
Parameters:
invocation - the execution state of the Action.
Throws:
Exception - if an error occurs validating the action.


Copyright © 2003–2015 Atlassian. All rights reserved.