You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2002/08/15 18:33:28 UTC

RE: cvs commit: xml-axis/java/src/org/apache/axis/transport/http AxisHttpSession.java AxisServlet.java ServletEndpointContextImpl.java

+1
Thanks Sam.  
Sorry I didn't respond to your first message, I was on vacation.

--
Tom Jordahl
Macromedia


-----Original Message-----
From: rubys@apache.org [mailto:rubys@apache.org]
Sent: Monday, August 12, 2002 8:39 PM
To: xml-axis-cvs@apache.org
Subject: cvs commit: xml-axis/java/src/org/apache/axis/transport/http
AxisHttpSession.java AxisServlet.java ServletEndpointContextImpl.java


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;