You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2001/03/23 18:33:08 UTC

cvs commit: xml-soap/java/src/org/apache/soap/server/http ServerHTTPUtils.java

dug         01/03/23 09:33:08

  Modified:    java/src/org/apache/soap/server/http ServerHTTPUtils.java
  Log:
  More updates to allow calling RPCRouter from a plug provider.
  
  Revision  Changes    Path
  1.17      +7 -4      xml-soap/java/src/org/apache/soap/server/http/ServerHTTPUtils.java
  
  Index: ServerHTTPUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/server/http/ServerHTTPUtils.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ServerHTTPUtils.java	2001/03/23 07:46:35	1.16
  +++ ServerHTTPUtils.java	2001/03/23 17:33:07	1.17
  @@ -240,7 +240,8 @@
       byte providerType = dd.getProviderType ();
       String className;
       Object targetObject = null;
  -    if (providerType == DeploymentDescriptor.PROVIDER_JAVA) {
  +    if (providerType == DeploymentDescriptor.PROVIDER_JAVA ||
  +        providerType == DeploymentDescriptor.PROVIDER_USER_DEFINED) {
         className = dd.getProviderClass ();
       } else {
         // for scripts, we need a new BSF manager basically
  @@ -292,7 +293,8 @@
               freshObject = true;
             } catch (Exception e) {
               String msg;
  -            if (providerType == DeploymentDescriptor.PROVIDER_JAVA) {
  +            if (providerType == DeploymentDescriptor.PROVIDER_JAVA ||
  +                providerType == DeploymentDescriptor.PROVIDER_USER_DEFINED) {
                 msg = "Unable to resolve target object: " + e.getMessage ();
               } else {
                 msg = "Unable to load BSF: script services not available " +
  @@ -316,8 +318,9 @@
   
       // if script provider type and first time to it, then load and
       // exec the script
  -    if (providerType != DeploymentDescriptor.PROVIDER_JAVA &&
  -        freshObject) {
  +    if ((providerType != DeploymentDescriptor.PROVIDER_JAVA &&
  +         providerType != DeploymentDescriptor.PROVIDER_USER_DEFINED)
  +        && freshObject) {
         // find the class that provides the BSF services (done
         // this way via reflection to avoid a static dependency on BSF)
         Class bc = null;