tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteRequestFacade.java
Date Tue, 29 Apr 2003 21:38:29 GMT
remm        2003/04/29 14:38:29

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteRequestFacade.java
  Log:
  - Port patch: do not double facade session objects.
  
  Revision  Changes    Path
  1.2       +6 -16     jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequestFacade.java
  
  Index: CoyoteRequestFacade.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequestFacade.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CoyoteRequestFacade.java	19 Apr 2003 18:49:10 -0000	1.1
  +++ CoyoteRequestFacade.java	29 Apr 2003 21:38:29 -0000	1.2
  @@ -220,12 +220,7 @@
           }
                   
           public Object run() {  
  -            HttpSession session =
  -                request.getSession(create);
  -            if (session == null)
  -                return null;
  -            else  
  -                return (new StandardSessionFacade(session));
  +            return request.getSession(create);
           }           
       }      
       // ----------------------------------------------------------- Constructors
  @@ -556,12 +551,7 @@
               return (HttpSession)AccessController.
                   doPrivileged(new GetSessionPrivilegedAction(create));
           } else {
  -            HttpSession session =
  -                request.getSession(create);
  -            if (session == null)
  -                return null;
  -            else 
  -                return new StandardSessionFacade(session);
  +            return request.getSession(create);
           }
       }
   
  
  
  

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


Mime
View raw message