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