org.jboss.web.tomcat.security
Class HttpServletRequestValve

java.lang.Object
  extended byValveBase
      extended byorg.jboss.web.tomcat.security.HttpServletRequestValve

public class HttpServletRequestValve
extends ValveBase

A Tomcat Valve that obtains the client's HttpServletRequest and saves it in a ThreadLocal variable. It allows the WebCallbackHandler to populate the HttpServletRequestCallback.

See Also:
Serialized Form

Field Summary
static java.lang.ThreadLocal httpRequest
          ThreadLocal to save the HttpServletRequest.
 
Constructor Summary
HttpServletRequestValve()
          Default constructor.
 
Method Summary
 void invoke(Request request, Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpRequest

public static java.lang.ThreadLocal httpRequest
ThreadLocal to save the HttpServletRequest.

Constructor Detail

HttpServletRequestValve

public HttpServletRequestValve()
Default constructor.

Method Detail

invoke

public void invoke(Request request,
                   Response response)
            throws java.io.IOException,
                   ServletException
Throws:
java.io.IOException
ServletException
See Also:
org.apache.catalina.Valve#invoke(org.apache.catalina.connector.Request, org.apache.catalina.connector.Response)