org.onebusaway.users.impl
Class RequestAndResponseContextFilter

java.lang.Object
  extended by org.onebusaway.users.impl.RequestAndResponseContextFilter
All Implemented Interfaces:
javax.servlet.Filter

public class RequestAndResponseContextFilter
extends Object
implements javax.servlet.Filter

A servlet Filter that pushes a RequestAndResponseContext context object into thread local storage so that the HttpServletRequest and HttpServletResponse can be accessed by code running within the context of the request.

Author:
bdferris

Constructor Summary
RequestAndResponseContextFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAndResponseContextFilter

public RequestAndResponseContextFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
Specified by:
init in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2011 OneBusAway. All Rights Reserved.