com.dyuproject.web.rest
Class InterceptorCollection

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractInterceptor
      extended by com.dyuproject.web.rest.InterceptorCollection
All Implemented Interfaces:
Interceptor

public class InterceptorCollection
extends AbstractInterceptor

Wraps an arry of interceptors and does the handle chain.

Author:
David Yu

Constructor Summary
InterceptorCollection()
           
 
Method Summary
 InterceptorCollection addInterceptor(Interceptor interceptor)
           
 Interceptor[] getInterceptors()
           
 int indexOf(Interceptor interceptor)
           
protected  void init()
           
 void postHandle(boolean handled, RequestContext requestContext)
           
 boolean preHandle(RequestContext requestContext)
           
 void setInterceptors(Interceptor[] interceptors)
           
 
Methods inherited from class com.dyuproject.web.rest.AbstractInterceptor
destroy, destroy, getWebContext, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorCollection

public InterceptorCollection()
Method Detail

addInterceptor

public InterceptorCollection addInterceptor(Interceptor interceptor)

indexOf

public int indexOf(Interceptor interceptor)

setInterceptors

public void setInterceptors(Interceptor[] interceptors)

getInterceptors

public Interceptor[] getInterceptors()

init

protected void init()
Specified by:
init in class AbstractInterceptor

postHandle

public void postHandle(boolean handled,
                       RequestContext requestContext)

preHandle

public boolean preHandle(RequestContext requestContext)
                  throws ServletException,
                         IOException
Throws:
ServletException
IOException


Copyright © 2013. All Rights Reserved.