dims        2002/06/25 12:11:21

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  Added a small HandlerRegistryImpl for JAXRPC compliance.
  
  Revision  Changes    Path
  1.61      +19 -2     xml-axis/java/src/org/apache/axis/client/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- Service.java      21 Jun 2002 18:28:35 -0000      1.60
  +++ Service.java      25 Jun 2002 19:11:21 -0000      1.61
  @@ -116,6 +116,7 @@
       private Definition          wsdlDefinition  = null ;
       private javax.wsdl.Service  wsdlService     = null ;
       private boolean             maintainSession = false ;
  +    private HandlerRegistryImpl registry = new HandlerRegistryImpl();
   
       /**
        * Thread local storage used for storing the last call object
  @@ -530,8 +531,7 @@
        *         HandlerRegistry.
        */
       public HandlerRegistry getHandlerRegistry() {
  -        throw new UnsupportedOperationException(
  -                JavaUtils.getMessage("handlerRegistryConfig"));
  +        return registry;
       }
   
       /**
  @@ -716,5 +716,22 @@
        */
       public void setCacheWSDL(boolean flag) {
         cachingWSDL = flag ;
  +    }
  +
  +    protected static class HandlerRegistryImpl implements HandlerRegistry {
  +        Map map = new HashMap();
  +
  +        public List getHandlerChain(QName portName) {
  +            List list = (List)map.get(portName);
  +            if(list == null) {
  +                list = new java.util.ArrayList();
  +                setHandlerChain(portName, list);
  +            }
  +            return list;
  +        }
  +
  +        public void setHandlerChain(QName portName, List chain) {
  +            map.put(portName, chain);
  +        }
       }
   }
  
  
  


Reply via email to