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/registries SupplierRegistry.java
Date Thu, 15 Feb 2001 13:30:02 GMT
dug         01/02/15 05:30:02

  Modified:    java/src/org/apache/axis/handlers HTTPActionHandler.java
               java/src/org/apache/axis/registries SupplierRegistry.java
  Log:
  Fixing compile bug and added a few more Debug lines
  
  Revision  Changes    Path
  1.4       +6 -3      xml-axis/java/src/org/apache/axis/handlers/HTTPActionHandler.java
  
  Index: HTTPActionHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/HTTPActionHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HTTPActionHandler.java	2001/02/12 01:11:14	1.3
  +++ HTTPActionHandler.java	2001/02/15 13:30:01	1.4
  @@ -55,7 +55,6 @@
   package org.apache.axis.handlers;
   
   import org.apache.axis.*;
  -import org.apache.axis.registries.SimpleServiceRegistry;
   import org.apache.axis.utils.Debug;
   import org.apache.axis.transport.http.HTTPConstants;
   
  @@ -75,9 +74,13 @@
       public void invoke(MessageContext msgContext) throws AxisFault
       {
           Debug.Print( 1, "Enter: HTTPActionHandler::invoke" );
  -        String action = (String)msgContext.getProperty(HTTPConstants.MC_HTTP_SOAPACTION);
  +        String action = (String) msgContext.getProperty(
  +                                             HTTPConstants.MC_HTTP_SOAPACTION);
  +        Debug.Print( 2, "  HTTP SOAPAction: " + action );
           if (action == null)
  -            throw new AxisFault(new NullPointerException("HTTPActionHandler: No HTTPAction
property in context!"));
  +            throw new AxisFault( "Server.NoHTTPAction",
  +                                 "No HTTPAction property in context",
  +                                 null, null );
   
           msgContext.setProperty(MessageContext.TARGET_SERVICE, action);
           Debug.Print( 1, "Exit : HTTPActionHandler::invoke" );
  
  
  
  1.2       +14 -4     xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java
  
  Index: SupplierRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/registries/SupplierRegistry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SupplierRegistry.java	2001/02/14 21:35:26	1.1
  +++ SupplierRegistry.java	2001/02/15 13:30:01	1.2
  @@ -58,8 +58,9 @@
   import java.io.* ;
   import java.util.* ;
   import org.apache.axis.* ;
  +import org.apache.axis.utils.Debug ;
  +import org.apache.axis.suppliers.* ;
   import org.apache.axis.registries.* ;
  -import org.apache.axis.suppliers.*;
   
   /** A <code>SupplierRegistry</code> contains Suppliers, which are used
    * by the find() method to obtain actual Handler references.  This
  @@ -115,10 +116,19 @@
        * Given a 'key' return the corresponding Handler
        */
       public Handler find(String key) {
  -        if ( suppliers == null ) return( null );
  +        Debug.Print( 2, "Enter: SupplierRegistry::find" );
  +        if ( suppliers == null ) {
  +          Debug.Print( 2, "Exit: SupplierRegistry::find - suppliers is null" );
  +          return( null );
  +        }
           Supplier supplier = (Supplier)suppliers.get(key);
  -        if (supplier == null) return null;
  -        return supplier.getHandler();
  +        if (supplier == null) {
  +          Debug.Print( 2, "Exit: SupplierRegistry::find - supplier is null" );
  +          return null;
  +        }
  +        Handler h = supplier.getHandler();
  +        Debug.Print( 2, "Exit: SupplierRegistry::find - h=" + h );
  +        return h ;
       }
   
       /**
  
  
  

Mime
View raw message