You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/05/20 00:45:38 UTC

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves PersistentValve.java

remm        2003/05/19 15:45:38

  Modified:    catalina/src/share/org/apache/catalina/valves
                        PersistentValve.java
  Log:
  - Since nobody objected, remove old mapper.
  
  Revision  Changes    Path
  1.3       +5 -11     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/PersistentValve.java
  
  Index: PersistentValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/PersistentValve.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PersistentValve.java	16 Dec 2002 09:20:10 -0000	1.2
  +++ PersistentValve.java	19 May 2003 22:45:38 -0000	1.3
  @@ -150,15 +150,9 @@
                          ValveContext valveContext)
           throws IOException, ServletException {
   
  -        // Validate the request and response object types
  -        if (!(request.getRequest() instanceof HttpServletRequest) ||
  -            !(response.getResponse() instanceof HttpServletResponse)) {
  -            return;     // NOTE - Not much else we can do generically
  -        }
  -
           // Select the Context to be used for this Request
           StandardHost host = (StandardHost) getContainer();
  -        Context context = (Context) host.map(request, true);
  +        Context context = request.getContext();
           if (context == null) {
               ((HttpServletResponse) response.getResponse()).sendError
                   (HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org