Clover icon

Coverage Report

  1. Project Clover database Thu Nov 7 2024 10:11:34 GMT
  2. Package ext.vamsas

File JpredSoapBindingStub.java

 

Coverage histogram

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

Code metrics

36
177
10
1
424
348
33
0.19
17.7
10
3.3

Classes

Class Line # Actions
JpredSoapBindingStub 23 177 33
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 ext.vamsas;
22   
 
23    public class JpredSoapBindingStub extends org.apache.axis.client.Stub
24    implements ext.vamsas.Jpred
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    static org.apache.axis.description.OperationDesc[] _operations;
35   
 
36  0 toggle static
37    {
38  0 _operations = new org.apache.axis.description.OperationDesc[4];
39  0 _initOperationDesc1();
40    }
41   
 
42  0 toggle private static void _initOperationDesc1()
43    {
44  0 org.apache.axis.description.OperationDesc oper;
45  0 oper = new org.apache.axis.description.OperationDesc();
46  0 oper.setName("predict");
47  0 oper.addParameter(new javax.xml.namespace.QName("", "seq"),
48    new javax.xml.namespace.QName("simple.objects.vamsas",
49    "Sequence"),
50    vamsas.objects.simple.Sequence.class,
51    org.apache.axis.description.ParameterDesc.IN, false, false);
52  0 oper.setReturnType(new javax.xml.namespace.QName(
53    "http://www.w3.org/2001/XMLSchema", "string"));
54  0 oper.setReturnClass(java.lang.String.class);
55  0 oper.setReturnQName(new javax.xml.namespace.QName("", "predictReturn"));
56  0 oper.setStyle(org.apache.axis.constants.Style.RPC);
57  0 oper.setUse(org.apache.axis.constants.Use.ENCODED);
58  0 _operations[0] = oper;
59   
60  0 oper = new org.apache.axis.description.OperationDesc();
61  0 oper.setName("predictOnMsa");
62  0 oper.addParameter(new javax.xml.namespace.QName("", "msf"),
63    new javax.xml.namespace.QName("http://simple.objects.vamsas",
64    "Msfalignment"),
65    vamsas.objects.simple.Msfalignment.class,
66    org.apache.axis.description.ParameterDesc.IN, false, false);
67  0 oper.setReturnType(new javax.xml.namespace.QName(
68    "http://www.w3.org/2001/XMLSchema", "string"));
69  0 oper.setReturnClass(java.lang.String.class);
70  0 oper.setReturnQName(
71    new javax.xml.namespace.QName("", "predictOnMsaReturn"));
72  0 oper.setStyle(org.apache.axis.constants.Style.RPC);
73  0 oper.setUse(org.apache.axis.constants.Use.ENCODED);
74  0 _operations[1] = oper;
75   
76  0 oper = new org.apache.axis.description.OperationDesc();
77  0 oper.setName("getpredict");
78  0 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
79    new javax.xml.namespace.QName(
80    "http://www.w3.org/2001/XMLSchema", "string"),
81    java.lang.String.class,
82    org.apache.axis.description.ParameterDesc.IN, false, false);
83  0 oper.setReturnType(new javax.xml.namespace.QName(
84    "http://simple.objects.vamsas", "Secstructpred"));
85  0 oper.setReturnClass(vamsas.objects.simple.Secstructpred.class);
86  0 oper.setReturnQName(
87    new javax.xml.namespace.QName("", "getpredictReturn"));
88  0 oper.setStyle(org.apache.axis.constants.Style.RPC);
89  0 oper.setUse(org.apache.axis.constants.Use.ENCODED);
90  0 _operations[2] = oper;
91   
92  0 oper = new org.apache.axis.description.OperationDesc();
93  0 oper.setName("getresult");
94  0 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
95    new javax.xml.namespace.QName(
96    "http://www.w3.org/2001/XMLSchema", "string"),
97    java.lang.String.class,
98    org.apache.axis.description.ParameterDesc.IN, false, false);
99  0 oper.setReturnType(new javax.xml.namespace.QName(
100    "http://simple.objects.vamsas", "JpredResult"));
101  0 oper.setReturnClass(vamsas.objects.simple.JpredResult.class);
102  0 oper.setReturnQName(
103    new javax.xml.namespace.QName("", "getresultReturn"));
104  0 oper.setStyle(org.apache.axis.constants.Style.RPC);
105  0 oper.setUse(org.apache.axis.constants.Use.ENCODED);
106  0 _operations[3] = oper;
107   
108    }
109   
 
110  0 toggle public JpredSoapBindingStub() throws org.apache.axis.AxisFault
111    {
112  0 this(null);
113    }
114   
 
115  0 toggle public JpredSoapBindingStub(java.net.URL endpointURL,
116    javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
117    {
118  0 this(service);
119  0 super.cachedEndpoint = endpointURL;
120    }
121   
 
122  0 toggle public JpredSoapBindingStub(javax.xml.rpc.Service service)
123    throws org.apache.axis.AxisFault
124    {
125  0 if (service == null)
126    {
127  0 super.service = new org.apache.axis.client.Service();
128    }
129    else
130    {
131  0 super.service = service;
132    }
133  0 java.lang.Class cls;
134  0 javax.xml.namespace.QName qName;
135  0 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
136  0 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
137    /*
138    * java.lang.Class enumsf =
139    * org.apache.axis.encoding.ser.EnumSerializerFactory.class; java.lang.Class
140    * enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
141    * java.lang.Class arraysf =
142    * org.apache.axis.encoding.ser.ArraySerializerFactory.class;
143    * java.lang.Class arraydf =
144    * org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
145    * java.lang.Class simplesf =
146    * org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
147    * java.lang.Class simpledf =
148    * org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
149    * java.lang.Class simplelistsf =
150    * org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
151    * java.lang.Class simplelistdf =
152    * org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
153    */
154  0 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
155    "JpredResult");
156  0 cachedSerQNames.add(qName);
157  0 cls = vamsas.objects.simple.JpredResult.class;
158  0 cachedSerClasses.add(cls);
159  0 cachedSerFactories.add(beansf);
160  0 cachedDeserFactories.add(beandf);
161   
162  0 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
163    "Result");
164  0 cachedSerQNames.add(qName);
165  0 cls = vamsas.objects.simple.Result.class;
166  0 cachedSerClasses.add(cls);
167  0 cachedSerFactories.add(beansf);
168  0 cachedDeserFactories.add(beandf);
169   
170  0 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
171    "Secstructpred");
172  0 cachedSerQNames.add(qName);
173  0 cls = vamsas.objects.simple.Secstructpred.class;
174  0 cachedSerClasses.add(cls);
175  0 cachedSerFactories.add(beansf);
176  0 cachedDeserFactories.add(beandf);
177   
178  0 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
179    "Msfalignment");
180  0 cachedSerQNames.add(qName);
181  0 cls = vamsas.objects.simple.Msfalignment.class;
182  0 cachedSerClasses.add(cls);
183  0 cachedSerFactories.add(beansf);
184  0 cachedDeserFactories.add(beandf);
185   
186  0 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
187    "Sequence");
188  0 cachedSerQNames.add(qName);
189  0 cls = vamsas.objects.simple.Sequence.class;
190  0 cachedSerClasses.add(cls);
191  0 cachedSerFactories.add(beansf);
192  0 cachedDeserFactories.add(beandf);
193   
194    }
195   
 
196  0 toggle protected org.apache.axis.client.Call createCall()
197    throws java.rmi.RemoteException
198    {
199  0 try
200    {
201  0 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
202    .createCall();
203  0 if (super.maintainSessionSet)
204    {
205  0 _call.setMaintainSession(super.maintainSession);
206    }
207  0 if (super.cachedUsername != null)
208    {
209  0 _call.setUsername(super.cachedUsername);
210    }
211  0 if (super.cachedPassword != null)
212    {
213  0 _call.setPassword(super.cachedPassword);
214    }
215  0 if (super.cachedEndpoint != null)
216    {
217  0 _call.setTargetEndpointAddress(super.cachedEndpoint);
218    }
219  0 if (super.cachedTimeout != null)
220    {
221  0 _call.setTimeout(super.cachedTimeout);
222    }
223  0 if (super.cachedPortName != null)
224    {
225  0 _call.setPortName(super.cachedPortName);
226    }
227  0 java.util.Enumeration keys = super.cachedProperties.keys();
228  0 while (keys.hasMoreElements())
229    {
230  0 java.lang.String key = (java.lang.String) keys.nextElement();
231  0 _call.setProperty(key, super.cachedProperties.get(key));
232    }
233    // All the type mapping information is registered
234    // when the first call is made.
235    // The type mapping information is actually registered in
236    // the TypeMappingRegistry of the service, which
237    // is the reason why registration is only needed for the first call.
238  0 synchronized (this)
239    {
240  0 if (firstCall())
241    {
242    // must set encoding style before registering serializers
243  0 _call.setSOAPVersion(
244    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
245  0 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
246  0 for (int i = 0; i < cachedSerFactories.size(); ++i)
247    {
248  0 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
249  0 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
250    .get(i);
251  0 java.lang.Class sf = (java.lang.Class) cachedSerFactories
252    .get(i);
253  0 java.lang.Class df = (java.lang.Class) cachedDeserFactories
254    .get(i);
255  0 _call.registerTypeMapping(cls, qName, sf, df, false);
256    }
257    }
258    }
259  0 return _call;
260    } catch (java.lang.Throwable _t)
261    {
262  0 throw new org.apache.axis.AxisFault(
263    "Failure trying to get the Call object", _t);
264    }
265    }
266   
 
267  0 toggle public java.lang.String predict(vamsas.objects.simple.Sequence seq)
268    throws java.rmi.RemoteException
269    {
270  0 if (super.cachedEndpoint == null)
271    {
272  0 throw new org.apache.axis.NoEndPointException();
273    }
274  0 org.apache.axis.client.Call _call = createCall();
275  0 _call.setOperation(_operations[0]);
276  0 _call.setUseSOAPAction(true);
277  0 _call.setSOAPActionURI("");
278  0 _call.setSOAPVersion(
279    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
280  0 _call.setOperationName(
281    new javax.xml.namespace.QName("vamsas", "predict"));
282   
283  0 setRequestHeaders(_call);
284  0 setAttachments(_call);
285  0 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { seq });
286   
287  0 if (_resp instanceof java.rmi.RemoteException)
288    {
289  0 throw (java.rmi.RemoteException) _resp;
290    }
291    else
292    {
293  0 extractAttachments(_call);
294  0 try
295    {
296  0 return (java.lang.String) _resp;
297    } catch (java.lang.Exception _exception)
298    {
299  0 return (java.lang.String) org.apache.axis.utils.JavaUtils
300    .convert(_resp, java.lang.String.class);
301    }
302    }
303    }
304   
 
305  0 toggle public java.lang.String predictOnMsa(
306    vamsas.objects.simple.Msfalignment msf)
307    throws java.rmi.RemoteException
308    {
309  0 if (super.cachedEndpoint == null)
310    {
311  0 throw new org.apache.axis.NoEndPointException();
312    }
313  0 org.apache.axis.client.Call _call = createCall();
314  0 _call.setOperation(_operations[1]);
315  0 _call.setUseSOAPAction(true);
316  0 _call.setSOAPActionURI("");
317  0 _call.setSOAPVersion(
318    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
319  0 _call.setOperationName(
320    new javax.xml.namespace.QName("vamsas", "predictOnMsa"));
321   
322  0 setRequestHeaders(_call);
323  0 setAttachments(_call);
324  0 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { msf });
325   
326  0 if (_resp instanceof java.rmi.RemoteException)
327    {
328  0 throw (java.rmi.RemoteException) _resp;
329    }
330    else
331    {
332  0 extractAttachments(_call);
333  0 try
334    {
335  0 return (java.lang.String) _resp;
336    } catch (java.lang.Exception _exception)
337    {
338  0 return (java.lang.String) org.apache.axis.utils.JavaUtils
339    .convert(_resp, java.lang.String.class);
340    }
341    }
342    }
343   
 
344  0 toggle public vamsas.objects.simple.Secstructpred getpredict(
345    java.lang.String job_id) throws java.rmi.RemoteException
346    {
347  0 if (super.cachedEndpoint == null)
348    {
349  0 throw new org.apache.axis.NoEndPointException();
350    }
351  0 org.apache.axis.client.Call _call = createCall();
352  0 _call.setOperation(_operations[2]);
353  0 _call.setUseSOAPAction(true);
354  0 _call.setSOAPActionURI("");
355  0 _call.setSOAPVersion(
356    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
357  0 _call.setOperationName(
358    new javax.xml.namespace.QName("vamsas", "getpredict"));
359   
360  0 setRequestHeaders(_call);
361  0 setAttachments(_call);
362  0 java.lang.Object _resp = _call
363    .invoke(new java.lang.Object[]
364    { job_id });
365   
366  0 if (_resp instanceof java.rmi.RemoteException)
367    {
368  0 throw (java.rmi.RemoteException) _resp;
369    }
370    else
371    {
372  0 extractAttachments(_call);
373  0 try
374    {
375  0 return (vamsas.objects.simple.Secstructpred) _resp;
376    } catch (java.lang.Exception _exception)
377    {
378  0 return (vamsas.objects.simple.Secstructpred) org.apache.axis.utils.JavaUtils
379    .convert(_resp, vamsas.objects.simple.Secstructpred.class);
380    }
381    }
382    }
383   
 
384  0 toggle public vamsas.objects.simple.JpredResult getresult(
385    java.lang.String job_id) throws java.rmi.RemoteException
386    {
387  0 if (super.cachedEndpoint == null)
388    {
389  0 throw new org.apache.axis.NoEndPointException();
390    }
391  0 org.apache.axis.client.Call _call = createCall();
392  0 _call.setOperation(_operations[3]);
393  0 _call.setUseSOAPAction(true);
394  0 _call.setSOAPActionURI("");
395  0 _call.setSOAPVersion(
396    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
397  0 _call.setOperationName(
398    new javax.xml.namespace.QName("vamsas", "getresult"));
399   
400  0 setRequestHeaders(_call);
401  0 setAttachments(_call);
402  0 java.lang.Object _resp = _call
403    .invoke(new java.lang.Object[]
404    { job_id });
405   
406  0 if (_resp instanceof java.rmi.RemoteException)
407    {
408  0 throw (java.rmi.RemoteException) _resp;
409    }
410    else
411    {
412  0 extractAttachments(_call);
413  0 try
414    {
415  0 return (vamsas.objects.simple.JpredResult) _resp;
416    } catch (java.lang.Exception _exception)
417    {
418  0 return (vamsas.objects.simple.JpredResult) org.apache.axis.utils.JavaUtils
419    .convert(_resp, vamsas.objects.simple.JpredResult.class);
420    }
421    }
422    }
423   
424    }