axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/soap SOAPConnectionImpl.java
Date Fri, 11 Jul 2003 13:58:21 GMT
dims        2003/07/11 06:58:21

  Modified:    java/src/org/apache/axis/soap SOAPConnectionImpl.java
  Log:
  Fix for Bug 21510 - call timeout when using SAAJ
  
  Notes:
  SOAPConnectionImpl exposes timeout. So you can typecast SOAPConnection to SOAPConnectionImpl
and use the set/get timeout methods.
  
  Revision  Changes    Path
  1.15      +20 -2     xml-axis/java/src/org/apache/axis/soap/SOAPConnectionImpl.java
  
  Index: SOAPConnectionImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/soap/SOAPConnectionImpl.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SOAPConnectionImpl.java	22 Apr 2003 19:35:46 -0000	1.14
  +++ SOAPConnectionImpl.java	11 Jul 2003 13:58:21 -0000	1.15
  @@ -69,8 +69,25 @@
    * @author Davanum Srinivas (dims@yahoo.com)
    */
   public class SOAPConnectionImpl extends javax.xml.soap.SOAPConnection {
  -    boolean closed = false;
  -    
  +    private boolean closed = false;
  +    private Integer timeout = null;
  +
  +    /**
  +     * get the timeout value
  +     * @return
  +     */ 
  +    public Integer getTimeout() {
  +        return timeout;
  +    }
  +
  +    /**
  +     * set the timeout value
  +     * @param timeout
  +     */ 
  +    public void setTimeout(Integer timeout) {
  +        this.timeout = timeout;
  +    }
  +
       /**
        * Sends the given message to the specified endpoint and
        * blocks until it has returned the response.
  @@ -101,6 +118,7 @@
                       call.addAttachmentPart(attachment);
                   }
               }
  +            call.setTimeout(timeout);
               call.setReturnClass(SOAPMessage.class);
               call.invoke(env);
               return call.getResponseMessage();
  
  
  

Mime
View raw message