You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gl...@apache.org on 2002/01/24 12:38:07 UTC

cvs commit: xml-axis/java/src/org/apache/axis/deployment DeploymentRegistry.java SimpleDeploymentManager.java

glyn        02/01/24 03:38:06

  Modified:    java/src/org/apache/axis Tag: config-work AxisEngine.java
               java/src/org/apache/axis/deployment Tag: config-work
                        DeploymentRegistry.java
                        SimpleDeploymentManager.java
  Log:
  Complete the first bit of WSDD refactoring by adding transport deploy/undeploy.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.63.2.2  +2 -11     xml-axis/java/src/org/apache/axis/AxisEngine.java
  
  Index: AxisEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisEngine.java,v
  retrieving revision 1.63.2.1
  retrieving revision 1.63.2.2
  diff -u -r1.63.2.1 -r1.63.2.2
  --- AxisEngine.java	23 Jan 2002 17:57:07 -0000	1.63.2.1
  +++ AxisEngine.java	24 Jan 2002 11:38:06 -0000	1.63.2.2
  @@ -443,16 +443,7 @@
       public void deployTransport(String key, SimpleTargetedChain transport)
           throws DeploymentException
       {
  -        transport.setName(key);
  -        WSDDTransport wt = new WSDDTransport();
  -        wt.setName(key);
  -        wt.setOptionsHashtable(transport.getOptions());
  -        // !!! Request flow?
  -        // !!! Response flow?
  -        wt.setPivotQName(new QName(WSDDConstants.WSDD_JAVA,
  -                                   transport.getPivotHandler().getClass().getName()));
  -        
  -        myRegistry.deployTransport(wt);
  +        myRegistry.deployTransport(key, transport);
       }
   
       /**
  @@ -461,7 +452,7 @@
       public void undeployTransport(String key)
           throws DeploymentException
       {
  -        myRegistry.undeployTransport(new QName("", key));
  +        myRegistry.undeployTransport(key);
       }
   
       /**
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.19.2.2  +18 -0     xml-axis/java/src/org/apache/axis/deployment/DeploymentRegistry.java
  
  Index: DeploymentRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/DeploymentRegistry.java,v
  retrieving revision 1.19.2.1
  retrieving revision 1.19.2.2
  diff -u -r1.19.2.1 -r1.19.2.2
  --- DeploymentRegistry.java	23 Jan 2002 17:57:08 -0000	1.19.2.1
  +++ DeploymentRegistry.java	24 Jan 2002 11:38:06 -0000	1.19.2.2
  @@ -55,6 +55,7 @@
   package org.apache.axis.deployment;
   
   import org.apache.axis.Handler;
  +import org.apache.axis.SimpleTargetedChain;
   import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
   import org.apache.axis.deployment.wsdd.WSDDDocument;
  @@ -228,6 +229,15 @@
           throws DeploymentException;
   
       /**
  +     * deploy the given transport
  +     * @param key XXX
  +     * @param transport XXX
  +     * @throws DeploymentException XXX
  +     */
  +    public abstract void deployTransport(String key, SimpleTargetedChain transport)
  +        throws DeploymentException;
  +  
  +    /**
        * remove the given item
        * @param qname XXX
        * @throws DeploymentException XXX
  @@ -273,6 +283,14 @@
        * @throws DeploymentException XXX
        */
       public abstract void undeployTransport(QName qname)
  +        throws DeploymentException;
  +
  +    /**
  +     * remove the given transport
  +     * @param key XXX
  +     * @throws DeploymentException XXX
  +     */
  +    public abstract void undeployTransport(String key)
           throws DeploymentException;
   
       /**
  
  
  
  1.24.2.2  +27 -0     xml-axis/java/src/org/apache/axis/deployment/SimpleDeploymentManager.java
  
  Index: SimpleDeploymentManager.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/SimpleDeploymentManager.java,v
  retrieving revision 1.24.2.1
  retrieving revision 1.24.2.2
  diff -u -r1.24.2.1 -r1.24.2.2
  --- SimpleDeploymentManager.java	23 Jan 2002 17:57:08 -0000	1.24.2.1
  +++ SimpleDeploymentManager.java	24 Jan 2002 11:38:06 -0000	1.24.2.2
  @@ -56,6 +56,7 @@
   
   import org.apache.axis.Constants;
   import org.apache.axis.Handler;
  +import org.apache.axis.SimpleTargetedChain;
   import org.apache.axis.InternalException;
   import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.providers.java.RPCProvider;
  @@ -513,6 +514,32 @@
           throws DeploymentException
       {
           undeployService(new QName("", key));
  +    }
  +
  +    /**
  +     * Deploy a Transport
  +     */
  +    public void deployTransport(String key, SimpleTargetedChain transport)
  +        throws DeploymentException
  +    {
  +        transport.setName(key);
  +        WSDDTransport wt = new WSDDTransport();
  +        wt.setName(key);
  +        wt.setOptionsHashtable(transport.getOptions());
  +        // !!! Request flow?
  +        // !!! Response flow?
  +        wt.setPivotQName(new QName(WSDDConstants.WSDD_JAVA,
  +                                   transport.getPivotHandler().getClass().getName()));
  +        deployTransport(wt);
  +    }
  +
  +    /**
  +     * Undeploy (remove) a client Transport
  +     */
  +    public void undeployTransport(String key)
  +        throws DeploymentException
  +    {
  +        undeployTransport(new QName("", key));
       }
   
       /**