View Javadoc

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