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/utils Options.java
Date Fri, 29 Jun 2001 19:59:21 GMT
gdaniels    01/06/29 12:59:19

  Modified:    java/samples/addr AddressBookProxy.java Main.java
               java/samples/bidbuy TestClient.java v3.java
               java/samples/echo TestClient.java
               java/samples/misc TestClient.java
               java/samples/stock GetInfo.java
               java/samples/transport/tcp Handler.java
               java/src/org/apache/axis/client ServiceClient.java
               java/src/org/apache/axis/utils Options.java
  Added:       java/src/org/apache/axis/transport/http HTTPTransport.java
               java/src/org/apache/axis/transport/local Handler.java
                        LocalTransport.java
  Removed:     java/src/org/apache/axis/client/http HTTPTransport.java
               java/src/org/apache/axis/transport/tcp README
  Log:
  Flesh out transport stuff a bit.
  
  There's now a static initialize() method on ServiceClient (not necessarily
  the best place for it) which someone should be responsible for calling
  before parsing any URLs - it sets up the basic Axis transports (http and
  local) and registers the org.apache.axis.transports class in the URL
  search path.
  
  Move HTTPTransport into org.apache.axis.transport.http
  
  Add local transport support classes.  "local://" URLs work now.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-axis/java/samples/addr/AddressBookProxy.java
  
  Index: AddressBookProxy.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/addr/AddressBookProxy.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AddressBookProxy.java	2001/06/29 11:47:12	1.1
  +++ AddressBookProxy.java	2001/06/29 19:58:22	1.2
  @@ -69,7 +69,7 @@
   
   import org.apache.axis.AxisFault;
   import org.apache.axis.client.ServiceClient;
  -import org.apache.axis.client.http.HTTPTransport;
  +import org.apache.axis.transport.http.HTTPTransport;
   import org.apache.axis.encoding.BeanSerializer;
   import org.apache.axis.utils.QName ;
   
  
  
  
  1.2       +0 -1      xml-axis/java/samples/addr/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/addr/Main.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Main.java	2001/06/29 11:47:12	1.1
  +++ Main.java	2001/06/29 19:58:25	1.2
  @@ -59,7 +59,6 @@
   
   import java.net.*;
   import org.apache.axis.client.ServiceClient;
  -import org.apache.axis.client.http.HTTPTransport;
   import org.apache.axis.utils.Options;
   import org.apache.axis.utils.Debug;
   
  
  
  
  1.5       +1 -1      xml-axis/java/samples/bidbuy/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/bidbuy/TestClient.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestClient.java	2001/06/21 02:45:23	1.4
  +++ TestClient.java	2001/06/29 19:58:31	1.5
  @@ -61,7 +61,7 @@
   
   import org.apache.axis.AxisFault ;
   import org.apache.axis.client.ServiceClient ;
  -import org.apache.axis.client.http.HTTPTransport ;
  +import org.apache.axis.transport.http.HTTPTransport ;
   import org.apache.axis.encoding.BeanSerializer;
   import org.apache.axis.encoding.SOAPTypeMappingRegistry;
   import org.apache.axis.encoding.ServiceDescription;
  
  
  
  1.6       +1 -1      xml-axis/java/samples/bidbuy/v3.java
  
  Index: v3.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/bidbuy/v3.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- v3.java	2001/06/01 06:47:52	1.5
  +++ v3.java	2001/06/29 19:58:33	1.6
  @@ -1,7 +1,7 @@
   package samples.bidbuy ;
   
   import org.apache.axis.client.ServiceClient ;
  -import org.apache.axis.client.http.HTTPTransport ;
  +import org.apache.axis.transport.http.HTTPTransport ;
   import org.apache.axis.message.RPCElement ;
   import org.apache.axis.message.RPCParam ;
   import org.apache.axis.utils.* ;
  
  
  
  1.7       +1 -1      xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestClient.java	2001/06/01 06:47:53	1.6
  +++ TestClient.java	2001/06/29 19:58:38	1.7
  @@ -60,7 +60,7 @@
   
   import org.apache.axis.AxisFault ;
   import org.apache.axis.client.ServiceClient ;
  -import org.apache.axis.client.http.HTTPTransport ;
  +import org.apache.axis.transport.http.HTTPTransport ;
   import org.apache.axis.encoding.BeanSerializer;
   import org.apache.axis.encoding.SOAPTypeMappingRegistry;
   import org.apache.axis.encoding.ServiceDescription;
  
  
  
  1.7       +1 -1      xml-axis/java/samples/misc/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/misc/TestClient.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestClient.java	2001/06/12 15:42:54	1.6
  +++ TestClient.java	2001/06/29 19:58:43	1.7
  @@ -63,7 +63,7 @@
   import org.apache.axis.utils.Debug ;
   import org.apache.axis.utils.Options ;
   import org.apache.axis.client.ServiceClient ;
  -import org.apache.axis.client.http.HTTPTransport ;
  +import org.apache.axis.transport.http.HTTPTransport ;
   
   /**
    *
  
  
  
  1.8       +1 -1      xml-axis/java/samples/stock/GetInfo.java
  
  Index: GetInfo.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/GetInfo.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- GetInfo.java	2001/06/01 06:47:54	1.7
  +++ GetInfo.java	2001/06/29 19:58:48	1.8
  @@ -64,7 +64,7 @@
   import org.apache.axis.utils.Options ;
   import org.apache.axis.client.ServiceClient ;
   import org.apache.axis.client.Transport ;
  -import org.apache.axis.client.http.HTTPTransport ;
  +import org.apache.axis.transport.http.HTTPTransport ;
   
   /**
    *
  
  
  
  1.2       +61 -0     xml-axis/java/samples/transport/tcp/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/transport/tcp/Handler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Handler.java	2001/06/29 18:43:17	1.1
  +++ Handler.java	2001/06/29 19:58:51	1.2
  @@ -1,7 +1,68 @@
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Axis" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +
   package samples.transport.tcp;
   
   import java.net.*;
   
  +/**
  + * A stub URLStreamHandler, so the system will recognize our
  + * custom URLs as valid.
  + * 
  + * @author Glen Daniels (gdaniels@macromedia.com)
  + */
   public class Handler extends URLStreamHandler
   {
     protected URLConnection openConnection(URL u)
  
  
  
  1.24      +58 -9     xml-axis/java/src/org/apache/axis/client/ServiceClient.java
  
  Index: ServiceClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceClient.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ServiceClient.java	2001/06/29 18:43:22	1.23
  +++ ServiceClient.java	2001/06/29 19:58:57	1.24
  @@ -69,7 +69,7 @@
   import org.apache.axis.encoding.DeserializerFactory;
   import org.apache.axis.registries.HandlerRegistry;
   import org.apache.axis.message.DebugHeader;
  -import org.apache.axis.client.http.HTTPTransport;
  +import org.apache.axis.transport.http.HTTPTransport;
   
   import org.w3c.dom.* ;
   
  @@ -92,7 +92,6 @@
   
   public class ServiceClient {
       // Client transports
  -    private static Transport defaultTransport = null;
       private static Hashtable transports = new Hashtable();
                                                           
       // keep prop hashtable small
  @@ -152,26 +151,76 @@
           setTransport(transport);
       }
       
  +    /**
  +     * Force the transport to be set for this ServiceClient.
  +     * 
  +     * @param transport the Transport object we'll use
  +     */
       public void setTransport(Transport transport) {
           this.transport = transport;
           Debug.Print(1, "Transport is " + transport);
       }
       
  -    public static void setDefaultTransport(Transport transport)
  +    /** Register a Transport that should be used for URLs of the specified
  +     * protocol.
  +     * 
  +     * @param protocol the URL protocol (i.e. "tcp" for "tcp://" urls)
  +     * @param transport a Transport object which will be used for matching
  +     *        URLs.
  +     */
  +    public static void setTransportForProtocol(String protocol,
  +                                               Transport transport)
       {
  -        defaultTransport = transport;
  +        transports.put(protocol, transport);
       }
       
  -    public static void setTransportForProtocol(String protocol, Transport transport)
  +    public static final String TRANSPORT_PROPERTY =
  +                                              "java.protocol.handler.pkgs";
  +    private static boolean initialized = false;
  +    
  +    /**
  +     * This is a bit kludgey - call this at some point before parsing
  +     * URLs to set up default Axis transports....
  +     */
  +    public static synchronized void initialize()
       {
  -        transports.put(protocol, transport);
  +      if (!initialized) {
  +        addTransportPackage("org.apache.axis.transport");
  +        
  +        setTransportForProtocol("local", new org.apache.axis.transport.local.LocalTransport());
  +        setTransportForProtocol("http", new HTTPTransport());
  +        
  +        initialized = true;
  +      }
  +    }
  +
  +    /** Add a package to the system protocol handler search path.  This
  +     * enables users to create their own URLStreamHandler classes, and thus
  +     * allow custom protocols to be used in Axis (typically on the client
  +     * command line).
  +     * 
  +     * For instance, if you add "samples.transport" to the packages property,
  +     * and have a class samples.transport.tcp.Handler, the system will be able
  +     * to parse URLs of the form "tcp://host:port..."
  +     * 
  +     * @param packageName the package in which to search for protocol names.
  +     */
  +    public static synchronized void addTransportPackage(String packageName)
  +    {
  +      System.out.println("Adding package " + packageName);
  +        String currentPackages = System.getProperty(TRANSPORT_PROPERTY);
  +        if (currentPackages == null) {
  +          currentPackages = "";
  +        } else {
  +          currentPackages += " ";
  +        }
  +        currentPackages += packageName;
  +        
  +        System.setProperty(TRANSPORT_PROPERTY, currentPackages);
       }
       
       public Transport getTransportForProtocol(String protocol)
       {
  -      if (protocol.equals("http"))
  -        return new HTTPTransport();
  -      
         return (Transport)transports.get(protocol);
       }
       
  
  
  
  1.1                  xml-axis/java/src/org/apache/axis/transport/http/HTTPTransport.java
  
  Index: HTTPTransport.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Axis" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.axis.transport.http;
  
  import java.util.* ;
  import org.apache.axis.* ;
  import org.apache.axis.utils.Debug ;
  import org.apache.axis.handlers.* ;
  import org.apache.axis.registries.* ;
  import org.apache.axis.client.ServiceClient;
  import org.apache.axis.client.Transport;
  import org.apache.axis.transport.http.HTTPConstants;
  
  /**
   * Extends Transport by implementing the setupMessageContext function to
   * set HTTP-specific message context fields and transport chains.
   * May not even be necessary if we arrange things differently somehow.
   * Can hold state relating to URL properties.
   *
   * @author Rob Jellinghaus (robj@unrealities.com)
   * @author Doug Davis (dug@us.ibm.com)
   * @author Glen Daniels (gdaniels@allaire.com)
   */
  public class HTTPTransport extends Transport
  {
      /**
       * HTTP properties
       */
      static public String URL = MessageContext.TRANS_URL;
      static public String ACTION = HTTPConstants.MC_HTTP_SOAPACTION;
      
      private String url;
      private String action;
      private String transportName = "http";
      
      public HTTPTransport () {
      }
      
      /**
       * helper constructor
       */
      public HTTPTransport (String url, String action)
      {
          this.url = url;
          this.action = action;
      }
      
      /**
       * Allows the user to set a particular transport Handler for sending this
       * message.  Assumes the name passed is in fact a registered transport.
       * 
       * @param transportName the name of a transport Handler
       */
      public void setTransportName(String transportName)
      {
          this.transportName = transportName;
      }
      
      /**
       * Set up any transport-specific derived properties in the message context.
       * @param context the context to set up
       * @param message the client service instance
       * @param engine the engine containing the registries
       * @throws AxisFault if service cannot be found
       */
      public void setupMessageContext (MessageContext mc, ServiceClient serviceClient, AxisEngine
engine)
          throws AxisFault
      {
          if (url != null) mc.setProperty(URL, url);
          if (action != null) mc.setProperty(ACTION, action);
          
          mc.setTransportName(transportName);
          
          // !!! Not sure about this
          mc.setTargetService( (String)mc.getProperty(ACTION) );
      }
  }
  
  
  
  1.1                  xml-axis/java/src/org/apache/axis/transport/local/Handler.java
  
  Index: Handler.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Axis" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.axis.transport.local;
  
  import java.net.*;
  
  /**
   * A stub URLStreamHandler, so the system will recognize our
   * custom URLs as valid.
   * 
   * @author Glen Daniels (gdaniels@macromedia.com)
   */
  public class Handler extends URLStreamHandler
  {
    protected URLConnection openConnection(URL u)
    {
      return null;
    }
  }
  
  
  
  1.1                  xml-axis/java/src/org/apache/axis/transport/local/LocalTransport.java
  
  Index: LocalTransport.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *    Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Axis" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.axis.transport.local;
  
  import org.apache.axis.* ;
  import org.apache.axis.utils.Debug ;
  import org.apache.axis.client.Transport;
  import org.apache.axis.client.ServiceClient;
  
  /**
   *
   * @author Rob Jellinghaus (robj@unrealities.com)
   * @author Doug Davis (dug@us.ibm.com)
   * @author Glen Daniels (gdaniels@allaire.com)
   */
  public class LocalTransport extends Transport
  {
      /**
       * Set up any transport-specific derived properties in the message context.
       * @param context the context to set up
       * @param message the client service instance
       * @param engine the engine containing the registries
       */
      public void setupMessageContext (MessageContext mc, ServiceClient serv, AxisEngine engine)
      {
          mc.setTransportName("local");
      }
  }
  
  
  
  
  1.12      +3 -0      xml-axis/java/src/org/apache/axis/utils/Options.java
  
  Index: Options.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/Options.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Options.java	2001/06/14 21:17:08	1.11
  +++ Options.java	2001/06/29 19:59:16	1.12
  @@ -225,6 +225,9 @@
     public String getURL() throws MalformedURLException {
       String  tmp ;
       URL     url = null ;
  +    
  +    // Just in case...
  +    org.apache.axis.client.ServiceClient.initialize();
   
       if ( (tmp = isValueSet( 'l' )) != null ) {
         url = new URL( tmp );
  
  
  

Mime
View raw message