1 18 package org.apache.beehive.netui.pageflow.interceptor.action; 19 20 import org.apache.beehive.netui.pageflow.interceptor.AbstractInterceptor; 21 import org.apache.beehive.netui.pageflow.interceptor.InterceptorChain; 22 import org.apache.beehive.netui.pageflow.interceptor.InterceptorContext; 23 import org.apache.beehive.netui.pageflow.interceptor.InterceptorException; 24 25 26 62 public abstract class ActionInterceptor 63 extends AbstractInterceptor 64 { 65 85 public abstract void preAction( ActionInterceptorContext context, InterceptorChain chain ) 86 throws InterceptorException; 87 88 91 public void preInvoke( InterceptorContext context, InterceptorChain chain ) throws InterceptorException 92 { 93 preAction( ( ActionInterceptorContext ) context, chain ); 94 } 95 96 110 public abstract void postAction( ActionInterceptorContext context, InterceptorChain chain ) 111 throws InterceptorException; 112 113 116 public void postInvoke( InterceptorContext context, InterceptorChain chain ) throws InterceptorException 117 { 118 postAction( ( ActionInterceptorContext ) context, chain ); 119 } 120 121 137 public abstract void afterNestedIntercept( AfterNestedInterceptContext context ) 138 throws InterceptorException; 139 140 148 protected void setOverrideForward( InterceptorForward forward, ActionInterceptorContext context ) 149 { 150 context.setOverrideForward( forward, this ); 151 } 152 153 164 public Object wrapAction( ActionInterceptorContext context, InterceptorChain chain ) 165 throws InterceptorException 166 { 167 return chain.continueChain(); 168 } 169 } 170 | Popular Tags |