Class ConditionalActionInterceptor

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

    @Component
    public class ConditionalActionInterceptor
    extends Object
    implements com.opensymphony.xwork2.interceptor.Interceptor
    Interceptor that checks for conditional accessibility annotations on an action and runs the condition to check if action should be executed or intercepted.

    Current limitation is that Condition classes need to be visible for HostContainer.

    See Also:
    ConditionallyAccessible, ConditionallyAvailable, Serialized Form
    • Constructor Detail

      • ConditionalActionInterceptor

        public ConditionalActionInterceptor()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.opensymphony.xwork2.interceptor.Interceptor
      • init

        public void init()
        Specified by:
        init in interface com.opensymphony.xwork2.interceptor.Interceptor
      • intercept

        public String intercept​(com.opensymphony.xwork2.ActionInvocation invocation)
                         throws Exception
        Specified by:
        intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
        Throws:
        Exception