Coverage Report - org.mule.transport.soap.axis.wsdl.AxisWsdlConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
AxisWsdlConnector
0%
0/14
0%
0/2
1.333
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.soap.axis.wsdl;
 8  
 
 9  
 import org.mule.api.MuleContext;
 10  
 import org.mule.transport.soap.axis.AxisConnector;
 11  
 
 12  
 import java.util.ArrayList;
 13  
 import java.util.Iterator;
 14  
 import java.util.List;
 15  
 
 16  
 /**
 17  
  * TODO document
 18  
  */
 19  
 public class AxisWsdlConnector extends AxisConnector
 20  
 {
 21  
 
 22  
     public AxisWsdlConnector(MuleContext context)
 23  
     {
 24  0
         super(context);
 25  0
     }
 26  
     
 27  
     protected void registerProtocols()
 28  
     {
 29  
         // Default supported schemes, these can be restricted
 30  
         // through configuration
 31  
 
 32  0
         List schemes = new ArrayList();
 33  0
         schemes.add("http");
 34  0
         schemes.add("https");
 35  0
         setSupportedSchemes(schemes);
 36  
 
 37  0
         for (Iterator iterator = schemes.iterator(); iterator.hasNext();)
 38  
         {
 39  0
             String s = (String)iterator.next();
 40  0
             registerSupportedProtocol(s);
 41  0
         }
 42  
         // This allows the generic WSDL provider to created endpoints using this
 43  
         // connector
 44  0
         registerSupportedProtocolWithoutPrefix("wsdl:http");
 45  0
         registerSupportedProtocolWithoutPrefix("wsdl:https");
 46  0
     }
 47  
 
 48  
     public String getProtocol()
 49  
     {
 50  0
         return "wsdl-axis";
 51  
     }
 52  
 }