View Javadoc
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          super(context);
25      }
26      
27      protected void registerProtocols()
28      {
29          // Default supported schemes, these can be restricted
30          // through configuration
31  
32          List schemes = new ArrayList();
33          schemes.add("http");
34          schemes.add("https");
35          setSupportedSchemes(schemes);
36  
37          for (Iterator iterator = schemes.iterator(); iterator.hasNext();)
38          {
39              String s = (String)iterator.next();
40              registerSupportedProtocol(s);
41          }
42          // This allows the generic WSDL provider to created endpoints using this
43          // connector
44          registerSupportedProtocolWithoutPrefix("wsdl:http");
45          registerSupportedProtocolWithoutPrefix("wsdl:https");
46      }
47  
48      public String getProtocol()
49      {
50          return "wsdl-axis";
51      }
52  }