Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package uk.ac.ebi.www.picr.AccessionMappingService

File AccessionMapperServiceLocator.java

 

Coverage histogram

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

Code metrics

12
39
14
1
196
140
23
0.59
2.79
14
1.64

Classes

Class Line # Actions
AccessionMapperServiceLocator 25 39 23 65
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.picr.AccessionMappingService;
22   
23    import jalview.util.MessageManager;
24   
 
25    public class AccessionMapperServiceLocator extends
26    org.apache.axis.client.Service implements
27    uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperService
28    {
29   
 
30  0 toggle public AccessionMapperServiceLocator()
31    {
32    }
33   
 
34  0 toggle public AccessionMapperServiceLocator(
35    org.apache.axis.EngineConfiguration config)
36    {
37  0 super(config);
38    }
39   
40    // Use to get a proxy class for AccessionMapperPort
41    private java.lang.String AccessionMapperPort_address = "http://www.ebi.ac.uk:80/Tools/picr/service";
42   
 
43  0 toggle public java.lang.String getAccessionMapperPortAddress()
44    {
45  0 return AccessionMapperPort_address;
46    }
47   
48    // The WSDD service name defaults to the port name.
49    private java.lang.String AccessionMapperPortWSDDServiceName = "AccessionMapperPort";
50   
 
51  0 toggle public java.lang.String getAccessionMapperPortWSDDServiceName()
52    {
53  0 return AccessionMapperPortWSDDServiceName;
54    }
55   
 
56  0 toggle public void setAccessionMapperPortWSDDServiceName(java.lang.String name)
57    {
58  0 AccessionMapperPortWSDDServiceName = name;
59    }
60   
 
61  0 toggle public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort()
62    throws javax.xml.rpc.ServiceException
63    {
64  0 java.net.URL endpoint;
65  0 try
66    {
67  0 endpoint = new java.net.URL(AccessionMapperPort_address);
68    } catch (java.net.MalformedURLException e)
69    {
70  0 throw new javax.xml.rpc.ServiceException(e);
71    }
72  0 return getAccessionMapperPort(endpoint);
73    }
74   
 
75  0 toggle public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort(
76    java.net.URL portAddress) throws javax.xml.rpc.ServiceException
77    {
78  0 try
79    {
80  0 uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub _stub = new uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub(
81    portAddress, this);
82  0 _stub.setPortName(getAccessionMapperPortWSDDServiceName());
83  0 return _stub;
84    } catch (org.apache.axis.AxisFault e)
85    {
86  0 return null;
87    }
88    }
89   
 
90  0 toggle public void setAccessionMapperPortEndpointAddress(java.lang.String address)
91    {
92  0 AccessionMapperPort_address = address;
93    }
94   
95    /**
96    * For the given interface, get the stub implementation. If this service has
97    * no port for the given interface, then ServiceException is thrown.
98    */
 
99  0 toggle public java.rmi.Remote getPort(Class serviceEndpointInterface)
100    throws javax.xml.rpc.ServiceException
101    {
102  0 try
103    {
104  0 if (uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface.class
105    .isAssignableFrom(serviceEndpointInterface))
106    {
107  0 uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub _stub = new uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub(
108    new java.net.URL(AccessionMapperPort_address), this);
109  0 _stub.setPortName(getAccessionMapperPortWSDDServiceName());
110  0 return _stub;
111    }
112    } catch (java.lang.Throwable t)
113    {
114  0 throw new javax.xml.rpc.ServiceException(t);
115    }
116  0 throw new javax.xml.rpc.ServiceException(MessageManager.formatMessage(
117    "exception.no_stub_implementation_for_interface",
118  0 new String[] { (serviceEndpointInterface == null ? "null"
119    : serviceEndpointInterface.getName()) }));
120    }
121   
122    /**
123    * For the given interface, get the stub implementation. If this service has
124    * no port for the given interface, then ServiceException is thrown.
125    */
 
126  0 toggle public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
127    Class serviceEndpointInterface)
128    throws javax.xml.rpc.ServiceException
129    {
130  0 if (portName == null)
131    {
132  0 return getPort(serviceEndpointInterface);
133    }
134  0 java.lang.String inputPortName = portName.getLocalPart();
135  0 if ("AccessionMapperPort".equals(inputPortName))
136    {
137  0 return getAccessionMapperPort();
138    }
139    else
140    {
141  0 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
142  0 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
143  0 return _stub;
144    }
145    }
146   
 
147  0 toggle public javax.xml.namespace.QName getServiceName()
148    {
149  0 return new javax.xml.namespace.QName(
150    "http://www.ebi.ac.uk/picr/AccessionMappingService",
151    "AccessionMapperService");
152    }
153   
154    private java.util.HashSet ports = null;
155   
 
156  0 toggle public java.util.Iterator getPorts()
157    {
158  0 if (ports == null)
159    {
160  0 ports = new java.util.HashSet();
161  0 ports.add(new javax.xml.namespace.QName(
162    "http://www.ebi.ac.uk/picr/AccessionMappingService",
163    "AccessionMapperPort"));
164    }
165  0 return ports.iterator();
166    }
167   
168    /**
169    * Set the endpoint address for the specified port name.
170    */
 
171  0 toggle public void setEndpointAddress(java.lang.String portName,
172    java.lang.String address) throws javax.xml.rpc.ServiceException
173    {
174  0 if ("AccessionMapperPort".equals(portName))
175    {
176  0 setAccessionMapperPortEndpointAddress(address);
177    }
178    else
179    { // Unknown Port Name
180  0 throw new javax.xml.rpc.ServiceException(
181    MessageManager.formatMessage(
182    "exception.cannot_set_endpoint_address_unknown_port",
183    new String[] { portName }));
184    }
185    }
186   
187    /**
188    * Set the endpoint address for the specified port name.
189    */
 
190  0 toggle public void setEndpointAddress(javax.xml.namespace.QName portName,
191    java.lang.String address) throws javax.xml.rpc.ServiceException
192    {
193  0 setEndpointAddress(portName.getLocalPart(), address);
194    }
195   
196    }