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 Admin.java
Date Fri, 09 Nov 2001 16:46:15 GMT
gdaniels    01/11/09 08:46:15

  Modified:    java/src/org/apache/axis/utils Admin.java
  Log:
  Pivots only make sense on the server
  
  Revision  Changes    Path
  1.82      +16 -12    xml-axis/java/src/org/apache/axis/utils/Admin.java
  
  Index: Admin.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/Admin.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- Admin.java	2001/11/09 16:32:27	1.81
  +++ Admin.java	2001/11/09 16:46:15	1.82
  @@ -673,19 +673,23 @@
           getOptions( elem, opts );
           serv.setOptionsHashtable(opts);
           
  -        Handler pivotHandler = engine.getHandler(pivot);
  -        if (pivotHandler == null)
  -            throw new AxisFault(JavaUtils.getMessage("noPivot00", pivot));
  -        Class pivotClass = pivotHandler.getClass();
  -        if (pivotClass == RPCProvider.class) {
  -            serv.setProviderQName(WSDDConstants.JAVARPC_PROVIDER);
  -        } else if (pivotClass != MsgProvider.class) {
  -            serv.setProviderQName(WSDDConstants.JAVAMSG_PROVIDER);
  -        } else {
  -            serv.setParameter("handlerClass", pivotClass.getName());
  -            serv.setProviderQName(WSDDConstants.HANDLER_PROVIDER);
  +        /**
  +         * Pivots only make sense on the server.
  +         */ 
  +        if (engine instanceof AxisServer) {
  +            Handler pivotHandler = engine.getHandler(pivot);
  +            if (pivotHandler == null)
  +                throw new AxisFault(JavaUtils.getMessage("noPivot00", pivot));
  +            Class pivotClass = pivotHandler.getClass();
  +            if (pivotClass == RPCProvider.class) {
  +                serv.setProviderQName(WSDDConstants.JAVARPC_PROVIDER);
  +            } else if (pivotClass != MsgProvider.class) {
  +                serv.setProviderQName(WSDDConstants.JAVAMSG_PROVIDER);
  +            } else {
  +                serv.setParameter("handlerClass", pivotClass.getName());
  +                serv.setProviderQName(WSDDConstants.HANDLER_PROVIDER);
  +            }
           }
  -        
   
           if ( response != null && !"".equals(response) ) {
               st = new StringTokenizer( response, " \t\n\r\f," );
  
  
  

Mime
View raw message