View Javadoc

1   /*
2    * $Id: AxisWsdlConnector.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.providers.soap.axis.wsdl;
12  
13  import org.mule.providers.soap.axis.AxisConnector;
14  
15  import java.util.ArrayList;
16  import java.util.Iterator;
17  import java.util.List;
18  
19  /**
20   * TODO document
21   */
22  public class AxisWsdlConnector extends AxisConnector
23  {
24  
25      protected void registerProtocols()
26      {
27          // Default supported schemes, these can be restricted
28          // through configuration
29  
30          List schemes = new ArrayList();
31          schemes.add("http");
32          schemes.add("https");
33          setSupportedSchemes(schemes);
34  
35          for (Iterator iterator = schemes.iterator(); iterator.hasNext();)
36          {
37              String s = (String)iterator.next();
38              registerSupportedProtocol(s);
39          }
40          // This allows the generic WSDL provider to created endpoints using this
41          // connector
42          registerSupportedProtocolWithoutPrefix("wsdl:http");
43          registerSupportedProtocolWithoutPrefix("wsdl:https");
44      }
45  
46      public String getProtocol()
47      {
48          return "wsdl-axis";
49      }
50  }