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