com.dyuproject.demos.helloworld
Class SimpleInterceptor

java.lang.Object
  extended by com.dyuproject.demos.helloworld.SimpleInterceptor
All Implemented Interfaces:
Interceptor

public class SimpleInterceptor
extends Object
implements Interceptor

Author:
David Yu

Constructor Summary
SimpleInterceptor()
           
 
Method Summary
 void destroy(WebContext webContext)
           
 void init(WebContext webContext)
           
 void postHandle(boolean handled, RequestContext requestContext)
           
 boolean preHandle(RequestContext requestContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInterceptor

public SimpleInterceptor()
Method Detail

init

public void init(WebContext webContext)
Specified by:
init in interface Interceptor

destroy

public void destroy(WebContext webContext)
Specified by:
destroy in interface Interceptor

preHandle

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

postHandle

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


Copyright © 2013. All Rights Reserved.