com.dyuproject.web.rest
Class ConsumerInterceptor
java.lang.Object
com.dyuproject.web.rest.AbstractLifeCycle
com.dyuproject.web.rest.ConsumerInterceptor
- All Implemented Interfaces:
- Interceptor, LifeCycle
public final class ConsumerInterceptor
- extends AbstractLifeCycle
- implements Interceptor
An interceptor that checks sets the mapped Consumer
in the
RequestContext
for use with the REST handlers.
- Author:
- David Yu
- Date created:
- Jan 18, 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumerInterceptor
public ConsumerInterceptor()
init
protected void init()
- Specified by:
init
in class AbstractLifeCycle
addConsumer
public void addConsumer(ValidatingConsumer consumer)
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.