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/client AdminClient.java ServiceClient.java
Date Mon, 13 Aug 2001 16:21:39 GMT
dug         01/08/13 09:21:39

  Modified:    java/src/org/apache/axis/client AdminClient.java
                        ServiceClient.java
  Log:
  Add the ability to set the transport chain name to use on the client.
  Add support for AdminClient to use this:
    -tFOO
  will use a chain named "FOO".
  
  Revision  Changes    Path
  1.30      +5 -0      xml-axis/java/src/org/apache/axis/client/AdminClient.java
  
  Index: AdminClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/AdminClient.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- AdminClient.java	2001/08/13 00:16:07	1.29
  +++ AdminClient.java	2001/08/13 16:21:39	1.30
  @@ -138,6 +138,7 @@
        *   <li><code>-p<i>password</i></code> sets the password</li>
        *   <li><code>-d</code> sets the debug flag (for instance, -ddd
would
        *      set it to 3)</li>
  +     *   <li><code>-t<i>name</i></code> sets the transport
chain touse</li>
        *   <li><code>list</code> will list the currently deployed services</li>
        *   <li><code>quit</code> will quit (???)</li>
        *   <li><code>passwd <i>value</i></code> changes the
admin password</li>
  @@ -212,6 +213,10 @@
               
               client.set( Transport.USER, opts.getUser() );
               client.set( Transport.PASSWORD, opts.getPassword() );
  +
  +            String tName = opts.isValueSet( 't' );
  +            if ( tName != null && !tName.equals("") )
  +                client.setTransportName( tName );
               
               client.invoke();
               
  
  
  
  1.40      +11 -0     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.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- ServiceClient.java	2001/08/11 20:19:04	1.39
  +++ ServiceClient.java	2001/08/13 16:21:39	1.40
  @@ -174,6 +174,7 @@
       
       // Our Transport, if any
       private Transport transport;
  +    private String    transportName ;
   
       /**
        * Basic, no-argument constructor.
  @@ -259,6 +260,13 @@
               e.printStackTrace();
           }
       }
  +
  +    /**
  +     * Set the name of the transport chain to use.
  +     */
  +    public void setTransportName(String name) {
  +      transportName = name ;
  +    }
       
    /** Get the Transport registered for the given protocol.
        * 
  @@ -538,6 +546,9 @@
           if (transport != null) {
               transport.setupMessageContext(msgContext, this, this.engine);
           }
  +        // Pass along the transport chain name if given
  +        if ( transportName != null ) 
  +          msgContext.setTransportName( transportName );
           
           try {
               engine.invoke( msgContext );
  
  
  

Mime
View raw message