KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > soap > axis > wsdl > AxisWsdlConnector


1 /*
2  * $Id: AxisWsdlConnector.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
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 JavaDoc;
16 import java.util.Iterator JavaDoc;
17 import java.util.List JavaDoc;
18
19 /**
20  * todo document
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25 public class AxisWsdlConnector extends AxisConnector
26 {
27
28     protected void registerProtocols()
29     {
30         // Default supported schemes, these can be restricted
31
// through configuration
32

33         List JavaDoc schemes = new ArrayList JavaDoc();
34         schemes.add("http");
35         schemes.add("https");
36         setSupportedSchemes(schemes);
37
38         for (Iterator JavaDoc iterator = schemes.iterator(); iterator.hasNext();)
39         {
40             String JavaDoc s = (String JavaDoc)iterator.next();
41             registerSupportedProtocol(s);
42         }
43         // This allows the generic WSDL provider to created endpoints using this
44
// connector
45
registerSupportedProtocolWithotPrefix("wsdl:http");
46         registerSupportedProtocolWithotPrefix("wsdl:https");
47     }
48
49     public String JavaDoc getProtocol()
50     {
51         return "wsdl-axis";
52     }
53 }
54
Popular Tags