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 bu...@apache.org on 2002/01/17 21:19:52 UTC

cvs commit: xml-axis/java/src/org/apache/axis/client Call.java Service.java

butek       02/01/17 12:19:52

  Modified:    java/src/org/apache/axis/client Call.java Service.java
  Log:
  Put setMaintainSession back onto the Call object.  The call object now gets the
  default setting from the Service object, but users can change that default.
  
  Revision  Changes    Path
  1.62      +19 -2     xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- Call.java	16 Jan 2002 19:14:03 -0000	1.61
  +++ Call.java	17 Jan 2002 20:19:52 -0000	1.62
  @@ -147,6 +147,8 @@
       // invoke() time
       private Hashtable          myProperties    = null ;
   
  +    private boolean            maintainSession = false;
  +
   
       // Our Transport, if any
       private Transport          transport       = null ;
  @@ -185,6 +187,7 @@
       public Call(Service service) {
           this.service = service ;
           msgContext = new MessageContext( service.getEngine() );
  +        maintainSession = service.getMaintainSession();
           if ( !initialized ) initialize();
       }
   
  @@ -1005,6 +1008,21 @@
       }
   
       /**
  +     * Determine whether we'd like to track sessions or not.  This
  +     *
  +     * overrides the default setting from the service.
  +     *
  +     * This just passes through the value into the MessageContext.
  +     *
  +     * Note: Not part of JAX-RPC specification.
  +     *
  +     * @param yesno true if session state is desired, false if not.
  +     */
  +    public void setMaintainSession (boolean yesno) {
  +        maintainSession = yesno;
  +    }
  +
  +    /**
        * Obtain a reference to our MessageContext.
        *
        * Note: Not part of JAX-RPC specification.
  @@ -1275,8 +1293,7 @@
           msgContext.reset();
           msgContext.setResponseMessage(null);
           msgContext.setProperty( MessageContext.CALL, this );
  -        msgContext.setMaintainSession(
  -                service.getMaintainSession());
  +        msgContext.setMaintainSession(maintainSession);
   
           /**
            * Go thru the properties and ones that are Axis specific, and
  
  
  
  1.33      +4 -2      xml-axis/java/src/org/apache/axis/client/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Service.java	10 Jan 2002 20:28:35 -0000	1.32
  +++ Service.java	17 Jan 2002 20:19:52 -0000	1.33
  @@ -476,8 +476,10 @@
   
       /**
        * Determine whether we'd like to track sessions or not.
  -     *
  -     * This just passes through the value into the MessageContext.
  +     * This information is passed to all Call objects created
  +     * from this service.  Calling setMaintainSession will
  +     * only affect future instantiations of the Call object,
  +     * not those that already exist.
        *
        * Note: Not part of JAX-RPC specification.
        *