com.dyuproject.web.rest
Class WrapperInterceptor

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractLifeCycle
      extended by com.dyuproject.web.rest.WrapperInterceptor
All Implemented Interfaces:
Interceptor, LifeCycle

public class WrapperInterceptor
extends AbstractLifeCycle
implements Interceptor

Wraps an interceptor for pre-handling and post-handling. This is generally subclassed to determine which interceptor executes first on pre-handle and post-handle.

Author:
David Yu
Date created:
Dec 4, 2008

Constructor Summary
WrapperInterceptor()
           
 
Method Summary
 Interceptor getInterceptor()
           
protected  void init()
           
 void postHandle(boolean handled, RequestContext requestContext)
           
 boolean preHandle(RequestContext requestContext)
           
 void setInterceptor(Interceptor interceptor)
           
 
Methods inherited from class com.dyuproject.web.rest.AbstractLifeCycle
destroy, destroy, getWebContext, init, isDestroyed, isInitialized, newObjectInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dyuproject.web.rest.LifeCycle
destroy, init
 

Constructor Detail

WrapperInterceptor

public WrapperInterceptor()
Method Detail

setInterceptor

public void setInterceptor(Interceptor interceptor)

getInterceptor

public Interceptor getInterceptor()

init

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

postHandle

public void postHandle(boolean handled,
                       RequestContext requestContext)
Specified by:
postHandle in interface Interceptor

preHandle

public boolean preHandle(RequestContext requestContext)
                  throws ServletException,
                         IOException
Specified by:
preHandle in interface Interceptor
Throws:
ServletException
IOException


Copyright © 2008-2013. All Rights Reserved.