1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.transport.soap.axis.wsdl; |
8 | |
|
9 | |
import org.mule.api.MuleContext; |
10 | |
import org.mule.transport.soap.axis.AxisConnector; |
11 | |
|
12 | |
import java.util.ArrayList; |
13 | |
import java.util.Iterator; |
14 | |
import java.util.List; |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
public class AxisWsdlConnector extends AxisConnector |
20 | |
{ |
21 | |
|
22 | |
public AxisWsdlConnector(MuleContext context) |
23 | |
{ |
24 | 0 | super(context); |
25 | 0 | } |
26 | |
|
27 | |
protected void registerProtocols() |
28 | |
{ |
29 | |
|
30 | |
|
31 | |
|
32 | 0 | List schemes = new ArrayList(); |
33 | 0 | schemes.add("http"); |
34 | 0 | schemes.add("https"); |
35 | 0 | setSupportedSchemes(schemes); |
36 | |
|
37 | 0 | for (Iterator iterator = schemes.iterator(); iterator.hasNext();) |
38 | |
{ |
39 | 0 | String s = (String)iterator.next(); |
40 | 0 | registerSupportedProtocol(s); |
41 | 0 | } |
42 | |
|
43 | |
|
44 | 0 | registerSupportedProtocolWithoutPrefix("wsdl:http"); |
45 | 0 | registerSupportedProtocolWithoutPrefix("wsdl:https"); |
46 | 0 | } |
47 | |
|
48 | |
public String getProtocol() |
49 | |
{ |
50 | 0 | return "wsdl-axis"; |
51 | |
} |
52 | |
} |