butek       02/02/20 05:55:20

  Modified:    java/src/org/apache/axis/client Stub.java
               java/src/org/apache/axis/wsdl/toJava JavaStubWriter.java
  Log:
  Added set/getTimeout to stubs since we've got those methods on Call.
  
  Revision  Changes    Path
  1.4       +15 -0     xml-axis/java/src/org/apache/axis/client/Stub.java
  
  Index: Stub.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Stub.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Stub.java 8 Feb 2002 20:48:21 -0000       1.3
  +++ Stub.java 20 Feb 2002 13:55:19 -0000      1.4
  @@ -95,6 +95,7 @@
       protected String     cachedUsername     = null;
       protected String     cachedPassword     = null;
       protected URL        cachedEndpoint     = null;
  +    protected Integer    cachedTimeout      = null;
   
       /**
        * Sets the value for a named property. JAX-RPC 1.0 specification 
  @@ -223,6 +224,20 @@
       public String getPassword() {
           return cachedPassword;
       } // getPassword
  +
  +    /**
  +     * Get the timeout value in milliseconds.  0 means no timeout.
  +     */
  +    public int getTimeout() {
  +        return cachedTimeout == null ? 0 : cachedTimeout.intValue();
  +    } // getTimeout
  +
  +    /**
  +     * Set the timeout in milliseconds.
  +     */
  +    public void setTimeout(int timeout) {
  +        cachedTimeout = new Integer(timeout);
  +    } // setTimeout
   
       /**
        * If set to true, session is maintained; if false, it is not.
  
  
  
  1.32      +3 -0      
xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java
  
  Index: JavaStubWriter.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- JavaStubWriter.java       15 Feb 2002 19:41:17 -0000      1.31
  +++ JavaStubWriter.java       20 Feb 2002 13:55:20 -0000      1.32
  @@ -185,6 +185,9 @@
           pw.println("            if (super.cachedEndpoint != null) {");
           pw.println("                
call.setTargetEndpointAddress(super.cachedEndpoint);");
           pw.println("            }");
  +        pw.println("            if (super.cachedTimeout != null) {");
  +        pw.println("                call.setTimeout(super.cachedTimeout);");
  +        pw.println("            }");
           pw.println("            java.util.Enumeration keys = 
super.cachedProperties.keys();");
           pw.println("            while (keys.hasMoreElements()) {");
           pw.println("                String key = (String) keys.nextElement();");
  
  
  


Reply via email to