1 3 package jodd.madvoc.interceptor; 4 5 6 import jodd.madvoc.ActionRequest; 7 import jodd.madvoc.MadvocException; 8 9 14 public abstract class ActionInterceptorStack implements ActionInterceptor { 15 16 private Class <? extends ActionInterceptor>[] interceptors; 17 18 21 public ActionInterceptorStack(Class <? extends ActionInterceptor>... interceptorClasses) { 22 if (interceptorClasses.length == 0) { 23 throw new MadvocException("Empty action interceptor stack is not allowed."); 24 } 25 this.interceptors = interceptorClasses; 26 } 27 28 31 public final String intercept(ActionRequest actionRequest) throws Exception { 32 return null; 33 } 34 35 38 public Class <? extends ActionInterceptor>[] getInterceptors() { 39 return interceptors; 40 } 41 } 42 | Popular Tags |