1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package ext.vamsas; |
22 |
|
|
23 |
|
import jalview.util.MessageManager; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 65 (65) |
Complexity: 23 |
Complexity Density: 0.59 |
|
25 |
|
public class MuscleWSServiceLocator extends org.apache.axis.client.Service |
26 |
|
implements ext.vamsas.MuscleWSService |
27 |
|
{ |
28 |
|
|
29 |
|
private java.lang.String MuscleWS_address = "http://anaplog.compbio.dundee.ac.uk:8080/axis/services/MuscleWS"; |
30 |
|
|
31 |
|
|
32 |
|
private java.lang.String MuscleWSWSDDServiceName = "MuscleWS"; |
33 |
|
|
34 |
|
private java.util.HashSet ports = null; |
35 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
36 |
0 |
public MuscleWSServiceLocator()... |
37 |
|
{ |
38 |
|
} |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0 |
public MuscleWSServiceLocator(org.apache.axis.EngineConfiguration config)... |
41 |
|
{ |
42 |
0 |
super(config); |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0 |
public java.lang.String getMuscleWSAddress()... |
46 |
|
{ |
47 |
0 |
return MuscleWS_address; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0 |
public java.lang.String getMuscleWSWSDDServiceName()... |
51 |
|
{ |
52 |
0 |
return MuscleWSWSDDServiceName; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0 |
public void setMuscleWSWSDDServiceName(java.lang.String name)... |
56 |
|
{ |
57 |
0 |
MuscleWSWSDDServiceName = name; |
58 |
|
} |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
60 |
0 |
public ext.vamsas.MuscleWS getMuscleWS()... |
61 |
|
throws javax.xml.rpc.ServiceException |
62 |
|
{ |
63 |
0 |
java.net.URL endpoint; |
64 |
|
|
65 |
0 |
try |
66 |
|
{ |
67 |
0 |
endpoint = new java.net.URL(MuscleWS_address); |
68 |
|
} catch (java.net.MalformedURLException e) |
69 |
|
{ |
70 |
0 |
throw new javax.xml.rpc.ServiceException(e); |
71 |
|
} |
72 |
|
|
73 |
0 |
return getMuscleWS(endpoint); |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
76 |
0 |
public ext.vamsas.MuscleWS getMuscleWS(java.net.URL portAddress)... |
77 |
|
throws javax.xml.rpc.ServiceException |
78 |
|
{ |
79 |
0 |
try |
80 |
|
{ |
81 |
0 |
ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub( |
82 |
|
portAddress, this); |
83 |
0 |
_stub.setPortName(getMuscleWSWSDDServiceName()); |
84 |
|
|
85 |
0 |
return _stub; |
86 |
|
} catch (org.apache.axis.AxisFault e) |
87 |
|
{ |
88 |
0 |
return null; |
89 |
|
} |
90 |
|
} |
91 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
0 |
public void setMuscleWSEndpointAddress(java.lang.String address)... |
93 |
|
{ |
94 |
0 |
MuscleWS_address = address; |
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
101 |
0 |
public java.rmi.Remote getPort(Class serviceEndpointInterface)... |
102 |
|
throws javax.xml.rpc.ServiceException |
103 |
|
{ |
104 |
0 |
try |
105 |
|
{ |
106 |
0 |
if (ext.vamsas.MuscleWS.class |
107 |
|
.isAssignableFrom(serviceEndpointInterface)) |
108 |
|
{ |
109 |
0 |
ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub( |
110 |
|
new java.net.URL(MuscleWS_address), this); |
111 |
0 |
_stub.setPortName(getMuscleWSWSDDServiceName()); |
112 |
|
|
113 |
0 |
return _stub; |
114 |
|
} |
115 |
|
} catch (java.lang.Throwable t) |
116 |
|
{ |
117 |
0 |
throw new javax.xml.rpc.ServiceException(t); |
118 |
|
} |
119 |
|
|
120 |
0 |
throw new javax.xml.rpc.ServiceException(MessageManager.formatMessage( |
121 |
|
"exception.no_stub_implementation_for_interface", new String[] |
122 |
0 |
{ (serviceEndpointInterface == null ? "null" |
123 |
|
: serviceEndpointInterface.getName()) })); |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
130 |
0 |
public java.rmi.Remote getPort(javax.xml.namespace.QName portName,... |
131 |
|
Class serviceEndpointInterface) |
132 |
|
throws javax.xml.rpc.ServiceException |
133 |
|
{ |
134 |
0 |
if (portName == null) |
135 |
|
{ |
136 |
0 |
return getPort(serviceEndpointInterface); |
137 |
|
} |
138 |
|
|
139 |
0 |
java.lang.String inputPortName = portName.getLocalPart(); |
140 |
|
|
141 |
0 |
if ("MuscleWS".equals(inputPortName)) |
142 |
|
{ |
143 |
0 |
return getMuscleWS(); |
144 |
|
} |
145 |
|
else |
146 |
|
{ |
147 |
0 |
java.rmi.Remote _stub = getPort(serviceEndpointInterface); |
148 |
0 |
((org.apache.axis.client.Stub) _stub).setPortName(portName); |
149 |
|
|
150 |
0 |
return _stub; |
151 |
|
} |
152 |
|
} |
153 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
0 |
public javax.xml.namespace.QName getServiceName()... |
155 |
|
{ |
156 |
0 |
return new javax.xml.namespace.QName("vamsas", "MuscleWSService"); |
157 |
|
} |
158 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
159 |
0 |
public java.util.Iterator getPorts()... |
160 |
|
{ |
161 |
0 |
if (ports == null) |
162 |
|
{ |
163 |
0 |
ports = new java.util.HashSet(); |
164 |
0 |
ports.add(new javax.xml.namespace.QName("vamsas", "MuscleWS")); |
165 |
|
} |
166 |
|
|
167 |
0 |
return ports.iterator(); |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
173 |
0 |
public void setEndpointAddress(java.lang.String portName,... |
174 |
|
java.lang.String address) throws javax.xml.rpc.ServiceException |
175 |
|
{ |
176 |
0 |
if ("MuscleWS".equals(portName)) |
177 |
|
{ |
178 |
0 |
setMuscleWSEndpointAddress(address); |
179 |
|
} |
180 |
|
else |
181 |
|
{ |
182 |
0 |
throw new javax.xml.rpc.ServiceException(MessageManager.formatMessage( |
183 |
|
"exception.cannot_set_endpoint_address_unknown_port", |
184 |
|
new String[] |
185 |
|
{ portName })); |
186 |
|
} |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
192 |
0 |
public void setEndpointAddress(javax.xml.namespace.QName portName,... |
193 |
|
java.lang.String address) throws javax.xml.rpc.ServiceException |
194 |
|
{ |
195 |
0 |
setEndpointAddress(portName.getLocalPart(), address); |
196 |
|
} |
197 |
|
} |