Clover icon

Coverage Report

  1. Project Clover database Tue Oct 29 2024 21:36:55 GMT
  2. Package ext.vamsas

File RegistryServiceSoapBindingStub.java

 

Coverage histogram

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

Code metrics

24
88
7
1
234
177
21
0.24
12.57
7
3

Classes

Class Line # Actions
RegistryServiceSoapBindingStub 23 88 21
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 RegistryServiceSoapBindingStub
24    extends org.apache.axis.client.Stub implements ext.vamsas.IRegistry
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[1];
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("getServices");
47  0 oper.setReturnType(new javax.xml.namespace.QName(
48    "registry.objects.vamsas", "ServiceHandles"));
49  0 oper.setReturnClass(ext.vamsas.ServiceHandles.class);
50  0 oper.setReturnQName(
51    new javax.xml.namespace.QName("", "getServicesReturn"));
52  0 oper.setStyle(org.apache.axis.constants.Style.RPC);
53  0 oper.setUse(org.apache.axis.constants.Use.ENCODED);
54  0 _operations[0] = oper;
55   
56    }
57   
 
58  0 toggle public RegistryServiceSoapBindingStub() throws org.apache.axis.AxisFault
59    {
60  0 this(null);
61    }
62   
 
63  0 toggle public RegistryServiceSoapBindingStub(java.net.URL endpointURL,
64    javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
65    {
66  0 this(service);
67  0 super.cachedEndpoint = endpointURL;
68    }
69   
 
70  0 toggle public RegistryServiceSoapBindingStub(javax.xml.rpc.Service service)
71    throws org.apache.axis.AxisFault
72    {
73  0 if (service == null)
74    {
75  0 super.service = new org.apache.axis.client.Service();
76    }
77    else
78    {
79  0 super.service = service;
80    }
81  0 java.lang.Class cls;
82  0 javax.xml.namespace.QName qName;
83  0 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
84  0 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
85    // java.lang.Class enumsf =
86    // org.apache.axis.encoding.ser.EnumSerializerFactory.class;
87    // java.lang.Class enumdf =
88    // org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
89  0 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
90  0 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
91    // java.lang.Class simplesf =
92    // org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
93    // java.lang.Class simpledf =
94    // org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
95    // java.lang.Class simplelistsf =
96    // org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
97    // java.lang.Class simplelistdf =
98    // org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
99  0 qName = new javax.xml.namespace.QName("vamsas",
100    "ArrayOf_tns1_ServiceHandle");
101  0 cachedSerQNames.add(qName);
102  0 cls = ext.vamsas.ServiceHandle[].class;
103  0 cachedSerClasses.add(cls);
104  0 cachedSerFactories.add(arraysf);
105  0 cachedDeserFactories.add(arraydf);
106   
107  0 qName = new javax.xml.namespace.QName("registry.objects.vamsas",
108    "ServiceHandles");
109  0 cachedSerQNames.add(qName);
110  0 cls = ext.vamsas.ServiceHandles.class;
111  0 cachedSerClasses.add(cls);
112  0 cachedSerFactories.add(beansf);
113  0 cachedDeserFactories.add(beandf);
114   
115  0 qName = new javax.xml.namespace.QName("registry.objects.vamsas",
116    "ServiceHandle");
117  0 cachedSerQNames.add(qName);
118  0 cls = ext.vamsas.ServiceHandle.class;
119  0 cachedSerClasses.add(cls);
120  0 cachedSerFactories.add(beansf);
121  0 cachedDeserFactories.add(beandf);
122   
123    }
124   
 
125  0 toggle protected org.apache.axis.client.Call createCall()
126    throws java.rmi.RemoteException
127    {
128  0 try
129    {
130  0 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
131    .createCall();
132  0 if (super.maintainSessionSet)
133    {
134  0 _call.setMaintainSession(super.maintainSession);
135    }
136  0 if (super.cachedUsername != null)
137    {
138  0 _call.setUsername(super.cachedUsername);
139    }
140  0 if (super.cachedPassword != null)
141    {
142  0 _call.setPassword(super.cachedPassword);
143    }
144  0 if (super.cachedEndpoint != null)
145    {
146  0 _call.setTargetEndpointAddress(super.cachedEndpoint);
147    }
148  0 if (super.cachedTimeout != null)
149    {
150  0 _call.setTimeout(super.cachedTimeout);
151    }
152  0 if (super.cachedPortName != null)
153    {
154  0 _call.setPortName(super.cachedPortName);
155    }
156  0 java.util.Enumeration keys = super.cachedProperties.keys();
157  0 while (keys.hasMoreElements())
158    {
159  0 java.lang.String key = (java.lang.String) keys.nextElement();
160  0 _call.setProperty(key, super.cachedProperties.get(key));
161    }
162    // All the type mapping information is registered
163    // when the first call is made.
164    // The type mapping information is actually registered in
165    // the TypeMappingRegistry of the service, which
166    // is the reason why registration is only needed for the first call.
167  0 synchronized (this)
168    {
169  0 if (firstCall())
170    {
171    // must set encoding style before registering serializers
172  0 _call.setSOAPVersion(
173    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
174  0 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
175  0 for (int i = 0; i < cachedSerFactories.size(); ++i)
176    {
177  0 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
178  0 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
179    .get(i);
180  0 java.lang.Class sf = (java.lang.Class) cachedSerFactories
181    .get(i);
182  0 java.lang.Class df = (java.lang.Class) cachedDeserFactories
183    .get(i);
184  0 _call.registerTypeMapping(cls, qName, sf, df, false);
185    }
186    }
187    }
188  0 return _call;
189    } catch (java.lang.Throwable _t)
190    {
191  0 throw new org.apache.axis.AxisFault(
192    "Failure trying to get the Call object", _t);
193    }
194    }
195   
 
196  0 toggle public ext.vamsas.ServiceHandles getServices()
197    throws java.rmi.RemoteException
198    {
199  0 if (super.cachedEndpoint == null)
200    {
201  0 throw new org.apache.axis.NoEndPointException();
202    }
203  0 org.apache.axis.client.Call _call = createCall();
204  0 _call.setOperation(_operations[0]);
205  0 _call.setUseSOAPAction(true);
206  0 _call.setSOAPActionURI("");
207  0 _call.setSOAPVersion(
208    org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
209  0 _call.setOperationName(
210    new javax.xml.namespace.QName("vamsas", "getServices"));
211   
212  0 setRequestHeaders(_call);
213  0 setAttachments(_call);
214  0 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
215   
216  0 if (_resp instanceof java.rmi.RemoteException)
217    {
218  0 throw (java.rmi.RemoteException) _resp;
219    }
220    else
221    {
222  0 extractAttachments(_call);
223  0 try
224    {
225  0 return (ext.vamsas.ServiceHandles) _resp;
226    } catch (java.lang.Exception _exception)
227    {
228  0 return (ext.vamsas.ServiceHandles) org.apache.axis.utils.JavaUtils
229    .convert(_resp, ext.vamsas.ServiceHandles.class);
230    }
231    }
232    }
233   
234    }