org.apache.beehive.netui.pageflow.interceptor
Class Interceptors

Object
  extended by Interceptors

public class Interceptors
extends Object

Convenience utility used to execute an interceptor chain given an InterceptorContext. This class can be invoked to execute "pre" and "post" interceptor chains.


Constructor Summary
Interceptors()
           
 
Method Summary
static void doPostIntercept(InterceptorContext context, List interceptors)
          Execute a "post" interceptor chain.
static void doPreIntercept(InterceptorContext context, List interceptors)
          Execute a "pre" interceptor chain.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interceptors

public Interceptors()
Method Detail

doPreIntercept

public static void doPreIntercept(InterceptorContext context,
                                  List interceptors)
                           throws InterceptorException
Execute a "pre" interceptor chain. This will execute the Interceptor.preInvoke(InterceptorContext, InterceptorChain) method to be invoked on each interceptor in a chain.

Parameters:
context - the context for a set of interceptors
interceptors - the list of interceptors
Throws:
InterceptorException

doPostIntercept

public static void doPostIntercept(InterceptorContext context,
                                   List interceptors)
                            throws InterceptorException
Execute a "post" interceptor chain. This will execute the Interceptor.postInvoke(InterceptorContext, InterceptorChain) method to be invoked on each interceptor in a chain.

Parameters:
context - the context for a set of interceptors
interceptors - the list of interceptors
Throws:
InterceptorException