axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/client Call.java
Date Thu, 18 Oct 2001 14:24:25 GMT
gdaniels    01/10/18 07:24:25

  Modified:    java/src/org/apache/axis/client Call.java
  Log:
  Add a couple of utility constructors
  
  Revision  Changes    Path
  1.16      +23 -0     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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Call.java	2001/10/17 21:12:59	1.15
  +++ Call.java	2001/10/18 14:24:25	1.16
  @@ -82,6 +82,8 @@
   import java.util.Enumeration ;
   import java.io.PrintWriter;
   import java.io.StringWriter;
  +import java.net.URL;
  +import java.net.MalformedURLException;
   
   /**
    * Axis' JAXRPC Dynamic Invocation Interface implementation of the Call
  @@ -157,6 +159,27 @@
       public Call() {
           setEngine( new AxisClient(configProvider) );
           if ( !initialized ) initialize();
  +    }
  +
  +    /**
  +     * Build a call from a URL string
  +     *
  +     * @param url the target endpoint URL
  +     * @exception MalformedURLException
  +     */
  +    public Call(String url) throws MalformedURLException {
  +        this();
  +        setTargetEndpointAddress(new URL(url));
  +    }
  +
  +    /**
  +     * Build a call from a URL
  +     *
  +     * @param url the target endpoint URL
  +     */
  +    public Call(URL url) {
  +        this();
  +        setTargetEndpointAddress(url);
       }
   
       /**
  
  
  

Mime
View raw message