axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http AxisHttpSession.java AxisServlet.java ServletEndpointContextImpl.java
Date Tue, 13 Aug 2002 00:38:47 GMT
rubys       2002/08/12 17:38:47

  Modified:    java/src/org/apache/axis/transport/http AxisHttpSession.java
                        AxisServlet.java ServletEndpointContextImpl.java
  Log:
  Defer creation of the http session as long as possible.
  
  Revision  Changes    Path
  1.10      +8 -0      xml-axis/java/src/org/apache/axis/transport/http/AxisHttpSession.java
  
  Index: AxisHttpSession.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisHttpSession.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- AxisHttpSession.java	6 May 2002 19:41:47 -0000	1.9
  +++ AxisHttpSession.java	13 Aug 2002 00:38:46 -0000	1.10
  @@ -81,6 +81,14 @@
           rep = realSession;
       }
       
  +    /** Get the internal HttpSession.
  +     */
  +    public HttpSession getRep()
  +    {
  +        ensureSession();
  +        return rep;
  +    }
  +    
       /** Set our internal HttpSession to the passed
        * servlet HttpSession.  Not sure if we'll really
        * need this method...
  
  
  
  1.133     +1 -1      xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.132
  retrieving revision 1.133
  diff -u -r1.132 -r1.133
  --- AxisServlet.java	12 Aug 2002 22:53:08 -0000	1.132
  +++ AxisServlet.java	13 Aug 2002 00:38:46 -0000	1.133
  @@ -768,7 +768,7 @@
   
           // Set up a javax.xml.rpc.server.ServletEndpointContext
           ServletEndpointContextImpl sec = 
  -                new ServletEndpointContextImpl(req.getSession(),
  +                new ServletEndpointContextImpl(new AxisHttpSession(req),
                                                  msgContext,
                                                  req.getUserPrincipal(),
                                                  getServletConfig().getServletContext());
  
  
  
  1.2       +3 -3      xml-axis/java/src/org/apache/axis/transport/http/ServletEndpointContextImpl.java
  
  Index: ServletEndpointContextImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/ServletEndpointContextImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServletEndpointContextImpl.java	2 Aug 2002 20:46:55 -0000	1.1
  +++ ServletEndpointContextImpl.java	13 Aug 2002 00:38:46 -0000	1.2
  @@ -62,13 +62,13 @@
   
   public class ServletEndpointContextImpl implements ServletEndpointContext {
       
  -    private HttpSession httpSession;
  +    private AxisHttpSession httpSession;
       private MessageContext msgContext ;
       private ServletContext servletContext;
       private Principal principal;
       
       public HttpSession getHttpSession() {
  -        return httpSession;
  +        return httpSession.getRep();
       }
   
       public MessageContext getMessageContext() {
  @@ -86,7 +86,7 @@
       /**
        * Full constructor
        */ 
  -    public ServletEndpointContextImpl(HttpSession httpSession, MessageContext msgContext,
Principal principal, ServletContext servletContext) {
  +    public ServletEndpointContextImpl(AxisHttpSession httpSession, MessageContext msgContext,
Principal principal, ServletContext servletContext) {
           this.httpSession = httpSession;
           this.msgContext = msgContext;
           this.principal = principal;
  
  
  

Mime
View raw message