Class ConfluenceValidationInterceptor

  • All Implemented Interfaces:
    com.opensymphony.xwork2.interceptor.Interceptor, Serializable

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

    See Also:
    Serialized Form
    • Constructor Detail

      • ConfluenceValidationInterceptor

        public ConfluenceValidationInterceptor()
    • Method Detail

      • intercept

        public String intercept​(com.opensymphony.xwork2.ActionInvocation invocation)
                         throws Exception
        Gets the current action and its context and calls ActionValidatorManager.validate(java.lang.Object, java.lang.String).
        Specified by:
        intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
        Specified by:
        intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
        Parameters:
        invocation - the execution state of the Action.
        Throws:
        Exception - if an error occurs validating the action.
      • setActionValidatorManager

        public void setActionValidatorManager​(com.opensymphony.xwork2.validator.ActionValidatorManager mgr)