Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AxisWsdlConnector |
|
| 1.5;1.5 |
1 | /* | |
2 | * $Id: AxisWsdlConnector.java 7976 2007-08-21 14:26:13Z 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 | * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a> | |
23 | * @version $Revision: 7976 $ | |
24 | */ | |
25 | 0 | 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 | 0 | List schemes = new ArrayList(); |
34 | 0 | schemes.add("http"); |
35 | 0 | schemes.add("https"); |
36 | 0 | setSupportedSchemes(schemes); |
37 | ||
38 | 0 | for (Iterator iterator = schemes.iterator(); iterator.hasNext();) |
39 | { | |
40 | 0 | String s = (String)iterator.next(); |
41 | 0 | registerSupportedProtocol(s); |
42 | } | |
43 | // This allows the generic WSDL provider to created endpoints using this | |
44 | // connector | |
45 | 0 | registerSupportedProtocolWithoutPrefix("wsdl:http"); |
46 | 0 | registerSupportedProtocolWithoutPrefix("wsdl:https"); |
47 | 0 | } |
48 | ||
49 | public String getProtocol() | |
50 | { | |
51 | 0 | return "wsdl-axis"; |
52 | } | |
53 | } |