com.dyuproject.web.rest
Class WrapperInterceptor

java.lang.Object
  extended by com.dyuproject.web.rest.AbstractInterceptor
      extended by com.dyuproject.web.rest.WrapperInterceptor
All Implemented Interfaces:
Interceptor
Direct Known Subclasses:
LoginInterceptor

public class WrapperInterceptor
extends AbstractInterceptor

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

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.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

WrapperInterceptor

public WrapperInterceptor()
Method Detail

setInterceptor

public void setInterceptor(Interceptor interceptor)

getInterceptor

public Interceptor getInterceptor()

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.