Clover icon

Coverage Report

  1. Project Clover database Wed Nov 13 2024 18:27:33 GMT
  2. Package uk.ac.ebi.www

File WSWUBlastSoapBindingStub.java

 

Coverage histogram

../../../../img/srcFileCovDistChart0.png
59% of files have more coverage

Code metrics

50
186
11
1
502
439
44
0.24
16.91
11
4

Classes

Class Line # Actions
WSWUBlastSoapBindingStub 23 186 44
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package uk.ac.ebi.www;
22   
 
23    public class WSWUBlastSoapBindingStub extends org.apache.axis.client.Stub
24    implements uk.ac.ebi.www.WSWUBlast
25    {
26    private java.util.Vector cachedSerClasses = new java.util.Vector();
27   
28    private java.util.Vector cachedSerQNames = new java.util.Vector();
29   
30    private java.util.Vector cachedSerFactories = new java.util.Vector();
31   
32    private java.util.Vector cachedDeserFactories = new java.util.Vector();
33   
 
34  0 toggle public WSWUBlastSoapBindingStub() throws org.apache.axis.AxisFault
35    {
36  0 this(null);
37    }
38   
 
39  0 toggle public WSWUBlastSoapBindingStub(java.net.URL endpointURL,
40    javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
41    {
42  0 this(service);
43  0 super.cachedEndpoint = endpointURL;
44    }
45   
 
46  0 toggle public WSWUBlastSoapBindingStub(javax.xml.rpc.Service service)
47    throws org.apache.axis.AxisFault
48    {
49  0 if (service == null)
50    {
51  0 super.service = new org.apache.axis.client.Service();
52    }
53    else
54    {
55  0 super.service = service;
56    }
57  0 java.lang.Class cls;
58  0 javax.xml.namespace.QName qName;
59  0 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
60  0 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
61  0 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
62  0 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
63  0 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
64  0 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
65  0 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
66  0 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
67  0 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
68    "inputParams");
69  0 cachedSerQNames.add(qName);
70  0 cls = uk.ac.ebi.www.InputParams.class;
71  0 cachedSerClasses.add(cls);
72  0 cachedSerFactories.add(beansf);
73  0 cachedDeserFactories.add(beandf);
74   
75  0 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
76    "WSArrayofFile");
77  0 cachedSerQNames.add(qName);
78  0 cls = uk.ac.ebi.www.WSFile[].class;
79  0 cachedSerClasses.add(cls);
80  0 cachedSerFactories.add(arraysf);
81  0 cachedDeserFactories.add(arraydf);
82   
83  0 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
84    "WSArrayofData");
85  0 cachedSerQNames.add(qName);
86  0 cls = uk.ac.ebi.www.Data[].class;
87  0 cachedSerClasses.add(cls);
88  0 cachedSerFactories.add(arraysf);
89  0 cachedDeserFactories.add(arraydf);
90   
91  0 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
92    "data");
93  0 cachedSerQNames.add(qName);
94  0 cls = uk.ac.ebi.www.Data.class;
95  0 cachedSerClasses.add(cls);
96  0 cachedSerFactories.add(beansf);
97  0 cachedDeserFactories.add(beandf);
98   
99  0 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
100    "WSFile");
101  0 cachedSerQNames.add(qName);
102  0 cls = uk.ac.ebi.www.WSFile.class;
103  0 cachedSerClasses.add(cls);
104  0 cachedSerFactories.add(beansf);
105  0 cachedDeserFactories.add(beandf);
106   
107    }
108   
 
109  0 toggle private org.apache.axis.client.Call createCall()
110    throws java.rmi.RemoteException
111    {
112  0 try
113    {
114  0 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
115    .createCall();
116  0 if (super.maintainSessionSet)
117    {
118  0 _call.setMaintainSession(super.maintainSession);
119    }
120  0 if (super.cachedUsername != null)
121    {
122  0 _call.setUsername(super.cachedUsername);
123    }
124  0 if (super.cachedPassword != null)
125    {
126  0 _call.setPassword(super.cachedPassword);
127    }
128  0 if (super.cachedEndpoint != null)
129    {
130  0 _call.setTargetEndpointAddress(super.cachedEndpoint);
131    }
132  0 if (super.cachedTimeout != null)
133    {
134  0 _call.setTimeout(super.cachedTimeout);
135    }
136  0 if (super.cachedPortName != null)
137    {
138  0 _call.setPortName(super.cachedPortName);
139    }
140  0 java.util.Enumeration keys = super.cachedProperties.keys();
141  0 while (keys.hasMoreElements())
142    {
143  0 java.lang.String key = (java.lang.String) keys.nextElement();
144  0 if (_call.isPropertySupported(key))
145    {
146  0 _call.setProperty(key, super.cachedProperties.get(key));
147    }
148    // else
149    // _call.setScopedProperty(key, super.cachedProperties.get(key));
150    }
151    // All the type mapping information is registered
152    // when the first call is made.
153    // The type mapping information is actually registered in
154    // the TypeMappingRegistry of the service, which
155    // is the reason why registration is only needed for the first call.
156  0 synchronized (this)
157    {
158  0 if (firstCall())
159    {
160    // must set encoding style before registering serializers
161  0 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
162  0 for (int i = 0; i < cachedSerFactories.size(); ++i)
163    {
164  0 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
165  0 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
166    .get(i);
167  0 java.lang.Class sf = (java.lang.Class) cachedSerFactories
168    .get(i);
169  0 java.lang.Class df = (java.lang.Class) cachedDeserFactories
170    .get(i);
171  0 _call.registerTypeMapping(cls, qName, sf, df, false);
172    }
173    }
174    }
175  0 return _call;
176    } catch (java.lang.Throwable t)
177    {
178  0 throw new org.apache.axis.AxisFault(
179    "Failure trying to get the Call object", t);
180    }
181    }
182   
 
183  0 toggle public byte[] poll(java.lang.String jobid, java.lang.String type)
184    throws java.rmi.RemoteException
185    {
186  0 if (super.cachedEndpoint == null)
187    {
188  0 throw new org.apache.axis.NoEndPointException();
189    }
190  0 org.apache.axis.client.Call _call = createCall();
191  0 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
192    new javax.xml.namespace.QName(
193    "http://www.w3.org/2001/XMLSchema", "string"),
194    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
195  0 _call.addParameter(new javax.xml.namespace.QName("", "type"),
196    new javax.xml.namespace.QName(
197    "http://www.w3.org/2001/XMLSchema", "string"),
198    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
199  0 _call.setReturnType(
200    new javax.xml.namespace.QName(
201    "http://www.w3.org/2001/XMLSchema", "base64Binary"),
202    byte[].class);
203  0 _call.setUseSOAPAction(true);
204  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#poll");
205  0 _call.setOperationStyle("rpc");
206  0 _call.setOperationName(new javax.xml.namespace.QName(
207    "http://www.ebi.ac.uk/WSWUBlast", "poll"));
208   
209  0 java.lang.Object _resp = _call
210    .invoke(new java.lang.Object[]
211    { jobid, type });
212   
213  0 if (_resp instanceof java.rmi.RemoteException)
214    {
215  0 throw (java.rmi.RemoteException) _resp;
216    }
217    else
218    {
219  0 try
220    {
221  0 return (byte[]) _resp;
222    } catch (java.lang.Exception _exception)
223    {
224  0 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
225    byte[].class);
226    }
227    }
228    }
229   
 
230  0 toggle public java.lang.String runWUBlast(uk.ac.ebi.www.InputParams params,
231    uk.ac.ebi.www.Data[] content) throws java.rmi.RemoteException
232    {
233  0 if (super.cachedEndpoint == null)
234    {
235  0 throw new org.apache.axis.NoEndPointException();
236    }
237  0 org.apache.axis.client.Call _call = createCall();
238  0 _call.addParameter(new javax.xml.namespace.QName("", "params"),
239    new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
240    "inputParams"),
241    uk.ac.ebi.www.InputParams.class,
242    javax.xml.rpc.ParameterMode.IN);
243  0 _call.addParameter(new javax.xml.namespace.QName("", "content"),
244    new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
245    "WSArrayofData"),
246    uk.ac.ebi.www.Data[].class, javax.xml.rpc.ParameterMode.IN);
247  0 _call.setReturnType(
248    new javax.xml.namespace.QName(
249    "http://www.w3.org/2001/XMLSchema", "string"),
250    java.lang.String.class);
251  0 _call.setUseSOAPAction(true);
252  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#runWUBlast");
253  0 _call.setOperationStyle("rpc");
254  0 _call.setOperationName(new javax.xml.namespace.QName(
255    "http://www.ebi.ac.uk/WSWUBlast", "runWUBlast"));
256   
257  0 java.lang.Object _resp = _call
258    .invoke(new java.lang.Object[]
259    { params, content });
260   
261  0 if (_resp instanceof java.rmi.RemoteException)
262    {
263  0 throw (java.rmi.RemoteException) _resp;
264    }
265    else
266    {
267  0 try
268    {
269  0 return (java.lang.String) _resp;
270    } catch (java.lang.Exception _exception)
271    {
272  0 return (java.lang.String) org.apache.axis.utils.JavaUtils
273    .convert(_resp, java.lang.String.class);
274    }
275    }
276    }
277   
 
278  0 toggle public byte[] test(java.lang.String jobid, java.lang.String type)
279    throws java.rmi.RemoteException
280    {
281  0 if (super.cachedEndpoint == null)
282    {
283  0 throw new org.apache.axis.NoEndPointException();
284    }
285  0 org.apache.axis.client.Call _call = createCall();
286  0 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
287    new javax.xml.namespace.QName(
288    "http://www.w3.org/2001/XMLSchema", "string"),
289    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
290  0 _call.addParameter(new javax.xml.namespace.QName("", "type"),
291    new javax.xml.namespace.QName(
292    "http://www.w3.org/2001/XMLSchema", "string"),
293    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
294  0 _call.setReturnType(
295    new javax.xml.namespace.QName(
296    "http://www.w3.org/2001/XMLSchema", "base64Binary"),
297    byte[].class);
298  0 _call.setUseSOAPAction(true);
299  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#test");
300  0 _call.setOperationStyle("rpc");
301  0 _call.setOperationName(new javax.xml.namespace.QName(
302    "http://www.ebi.ac.uk/WSWUBlast", "test"));
303   
304  0 java.lang.Object _resp = _call
305    .invoke(new java.lang.Object[]
306    { jobid, type });
307   
308  0 if (_resp instanceof java.rmi.RemoteException)
309    {
310  0 throw (java.rmi.RemoteException) _resp;
311    }
312    else
313    {
314  0 try
315    {
316  0 return (byte[]) _resp;
317    } catch (java.lang.Exception _exception)
318    {
319  0 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
320    byte[].class);
321    }
322    }
323    }
324   
 
325  0 toggle public java.lang.String checkStatus(java.lang.String jobid)
326    throws java.rmi.RemoteException
327    {
328  0 if (super.cachedEndpoint == null)
329    {
330  0 throw new org.apache.axis.NoEndPointException();
331    }
332  0 org.apache.axis.client.Call _call = createCall();
333  0 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
334    new javax.xml.namespace.QName(
335    "http://www.w3.org/2001/XMLSchema", "string"),
336    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
337  0 _call.setReturnType(
338    new javax.xml.namespace.QName(
339    "http://www.w3.org/2001/XMLSchema", "string"),
340    java.lang.String.class);
341  0 _call.setUseSOAPAction(true);
342  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#checkStatus");
343  0 _call.setOperationStyle("rpc");
344  0 _call.setOperationName(new javax.xml.namespace.QName(
345    "http://www.ebi.ac.uk/WSWUBlast", "checkStatus"));
346   
347  0 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { jobid });
348   
349  0 if (_resp instanceof java.rmi.RemoteException)
350    {
351  0 throw (java.rmi.RemoteException) _resp;
352    }
353    else
354    {
355  0 try
356    {
357  0 return (java.lang.String) _resp;
358    } catch (java.lang.Exception _exception)
359    {
360  0 return (java.lang.String) org.apache.axis.utils.JavaUtils
361    .convert(_resp, java.lang.String.class);
362    }
363    }
364    }
365   
 
366  0 toggle public uk.ac.ebi.www.WSFile[] getResults(java.lang.String jobid)
367    throws java.rmi.RemoteException
368    {
369  0 if (super.cachedEndpoint == null)
370    {
371  0 throw new org.apache.axis.NoEndPointException();
372    }
373  0 org.apache.axis.client.Call _call = createCall();
374  0 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
375    new javax.xml.namespace.QName(
376    "http://www.w3.org/2001/XMLSchema", "string"),
377    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
378  0 _call.setReturnType(
379    new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
380    "WSArrayofFile"),
381    uk.ac.ebi.www.WSFile[].class);
382  0 _call.setUseSOAPAction(true);
383  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#getResults");
384  0 _call.setOperationStyle("rpc");
385  0 _call.setOperationName(new javax.xml.namespace.QName(
386    "http://www.ebi.ac.uk/WSWUBlast", "getResults"));
387   
388  0 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { jobid });
389   
390  0 if (_resp instanceof java.rmi.RemoteException)
391    {
392  0 throw (java.rmi.RemoteException) _resp;
393    }
394    else
395    {
396  0 try
397    {
398  0 return (uk.ac.ebi.www.WSFile[]) _resp;
399    } catch (java.lang.Exception _exception)
400    {
401  0 return (uk.ac.ebi.www.WSFile[]) org.apache.axis.utils.JavaUtils
402    .convert(_resp, uk.ac.ebi.www.WSFile[].class);
403    }
404    }
405    }
406   
 
407  0 toggle public byte[] polljob(java.lang.String jobid, java.lang.String outformat)
408    throws java.rmi.RemoteException
409    {
410  0 if (super.cachedEndpoint == null)
411    {
412  0 throw new org.apache.axis.NoEndPointException();
413    }
414  0 org.apache.axis.client.Call _call = createCall();
415  0 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
416    new javax.xml.namespace.QName(
417    "http://www.w3.org/2001/XMLSchema", "string"),
418    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
419  0 _call.addParameter(new javax.xml.namespace.QName("", "outformat"),
420    new javax.xml.namespace.QName(
421    "http://www.w3.org/2001/XMLSchema", "string"),
422    java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
423  0 _call.setReturnType(
424    new javax.xml.namespace.QName(
425    "http://www.w3.org/2001/XMLSchema", "base64Binary"),
426    byte[].class);
427  0 _call.setUseSOAPAction(true);
428  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#polljob");
429  0 _call.setOperationStyle("rpc");
430  0 _call.setOperationName(new javax.xml.namespace.QName(
431    "http://www.ebi.ac.uk/WSWUBlast", "polljob"));
432   
433  0 java.lang.Object _resp = _call
434    .invoke(new java.lang.Object[]
435    { jobid, outformat });
436   
437  0 if (_resp instanceof java.rmi.RemoteException)
438    {
439  0 throw (java.rmi.RemoteException) _resp;
440    }
441    else
442    {
443  0 try
444    {
445  0 return (byte[]) _resp;
446    } catch (java.lang.Exception _exception)
447    {
448  0 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
449    byte[].class);
450    }
451    }
452    }
453   
 
454  0 toggle public byte[] doWUBlast(uk.ac.ebi.www.InputParams params, byte[] content)
455    throws java.rmi.RemoteException
456    {
457  0 if (super.cachedEndpoint == null)
458    {
459  0 throw new org.apache.axis.NoEndPointException();
460    }
461  0 org.apache.axis.client.Call _call = createCall();
462  0 _call.addParameter(new javax.xml.namespace.QName("", "params"),
463    new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
464    "inputParams"),
465    uk.ac.ebi.www.InputParams.class,
466    javax.xml.rpc.ParameterMode.IN);
467  0 _call.addParameter(new javax.xml.namespace.QName("", "content"),
468    new javax.xml.namespace.QName(
469    "http://www.w3.org/2001/XMLSchema", "base64Binary"),
470    byte[].class, javax.xml.rpc.ParameterMode.IN);
471  0 _call.setReturnType(
472    new javax.xml.namespace.QName(
473    "http://www.w3.org/2001/XMLSchema", "base64Binary"),
474    byte[].class);
475  0 _call.setUseSOAPAction(true);
476  0 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#doWUBlast");
477  0 _call.setOperationStyle("rpc");
478  0 _call.setOperationName(new javax.xml.namespace.QName(
479    "http://www.ebi.ac.uk/WSWUBlast", "doWUBlast"));
480   
481  0 java.lang.Object _resp = _call
482    .invoke(new java.lang.Object[]
483    { params, content });
484   
485  0 if (_resp instanceof java.rmi.RemoteException)
486    {
487  0 throw (java.rmi.RemoteException) _resp;
488    }
489    else
490    {
491  0 try
492    {
493  0 return (byte[]) _resp;
494    } catch (java.lang.Exception _exception)
495    {
496  0 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
497    byte[].class);
498    }
499    }
500    }
501   
502    }