Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: AxisNamespaceHandler.java 12420 2008-07-29 18:58:27Z tcarlson $
   * --------------------------------------------------------------------------------------
   * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
   *
   * The software in this package is published under the terms of the CPAL v1.0
   * license, a copy of which has been included with this distribution in the
   * LICENSE.txt file.
   */
 
 package org.mule.transport.soap.axis.config;
 
 
 import java.util.Map;
 
 import  org.apache.axis.constants.Style;
 import  org.apache.axis.constants.Use;
Registers a Bean Definition Parser for handling <axis:connector> elements.
 
 {
 
     public static final String PROPERTIES = "properties";
     public static final Map USE_MAP = new HashMap();
     public static final Map STYLE_MAP = new HashMap();
 
     static
     {
         .put("LITERAL", Use.LITERAL_STR);
         .put("ENCODED", Use.ENCODED_STR);
         .put("DOCUMENT", Style.DOCUMENT_STR);
         .put("MESSAGE", Style.MESSAGE_STR);
         .put("RPC", Style.RPC_STR);
         .put("WRAPPED", Style.WRAPPED_STR);
     }
 
 
     public void init()
     {
         registerBeanDefinitionParser("supported-scheme"new ChildListEntryDefinitionParser("supportedSchemes""value"));
         registerBeanDefinitionParser("soap-parameter"new SoapParameterDefinitionParser());
         registerBeanDefinitionParser("soap-return"new SoapReturnDefinitionParser());
         registerMuleBeanDefinitionParser("bean-type",
                 new ParentContextDefinitionParser("connector"new ChildListEntryDefinitionParser(."interface"))
                         .otherwise(new NestedListDefinitionParser(."interface")));
         
         registerBeanDefinitionParser("wrapper-component"new ComponentDefinitionParser(WebServiceWrapperComponent.class));
     }
 
     private static class SoapParameterDefinitionParser extends ListPropertyDefinitionParser
     {
 
         public static final String PARAMETER = "parameter";
 
         public SoapParameterDefinitionParser()
         {
             super();
             registerPreProcessor(new AttributeConcatenation(";"new String[]{"type""mode"}));
         }
 
     }
 
     private static class SoapReturnDefinitionParser extends ListPropertyDefinitionParser
     {
 
         public SoapReturnDefinitionParser()
         {
             super(.);
             registerPreProcessor(new PreProcessor()
             {
                 public void preProcess(PropertyConfiguration configElement element)
                 {
                    element.setAttribute(."return;" + element.getAttribute("type"));
                }
            });
        }
    }
New to GrepCode? Check out our FAQ X