JAL-1517 fix copyright for 2.8.2
[jalview.git] / src / uk / ac / ebi / www / WSWUBlastServiceLocator.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3  * Copyright (C) 2014 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 WSWUBlastServiceLocator extends org.apache.axis.client.Service
24         implements uk.ac.ebi.www.WSWUBlastService
25 {
26
27   // Use to get a proxy class for WSWUBlast
28   private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
29
30   public java.lang.String getWSWUBlastAddress()
31   {
32     return WSWUBlast_address;
33   }
34
35   // The WSDD service name defaults to the port name.
36   private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
37
38   public java.lang.String getWSWUBlastWSDDServiceName()
39   {
40     return WSWUBlastWSDDServiceName;
41   }
42
43   public void setWSWUBlastWSDDServiceName(java.lang.String name)
44   {
45     WSWUBlastWSDDServiceName = name;
46   }
47
48   public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
49           throws javax.xml.rpc.ServiceException
50   {
51     java.net.URL endpoint;
52     try
53     {
54       endpoint = new java.net.URL(WSWUBlast_address);
55     } catch (java.net.MalformedURLException e)
56     {
57       return null; // unlikely as URL was validated in WSDL2Java
58     }
59     return getWSWUBlast(endpoint);
60   }
61
62   public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
63           throws javax.xml.rpc.ServiceException
64   {
65     try
66     {
67       uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
68               portAddress, this);
69       _stub.setPortName(getWSWUBlastWSDDServiceName());
70       return _stub;
71     } catch (org.apache.axis.AxisFault e)
72     {
73       return null;
74     }
75   }
76
77   /**
78    * For the given interface, get the stub implementation. If this service has
79    * no port for the given interface, then ServiceException is thrown.
80    */
81   public java.rmi.Remote getPort(Class serviceEndpointInterface)
82           throws javax.xml.rpc.ServiceException
83   {
84     try
85     {
86       if (uk.ac.ebi.www.WSWUBlast.class
87               .isAssignableFrom(serviceEndpointInterface))
88       {
89         uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
90                 new java.net.URL(WSWUBlast_address), this);
91         _stub.setPortName(getWSWUBlastWSDDServiceName());
92         return _stub;
93       }
94     } catch (java.lang.Throwable t)
95     {
96       throw new javax.xml.rpc.ServiceException(t);
97     }
98     throw new javax.xml.rpc.ServiceException(
99             "There is no stub implementation for the interface:  "
100                     + (serviceEndpointInterface == null ? "null"
101                             : serviceEndpointInterface.getName()));
102   }
103
104   /**
105    * For the given interface, get the stub implementation. If this service has
106    * no port for the given interface, then ServiceException is thrown.
107    */
108   public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
109           Class serviceEndpointInterface)
110           throws javax.xml.rpc.ServiceException
111   {
112     java.rmi.Remote _stub = getPort(serviceEndpointInterface);
113     ((org.apache.axis.client.Stub) _stub).setPortName(portName);
114     return _stub;
115   }
116
117   public javax.xml.namespace.QName getServiceName()
118   {
119     return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
120             "WSWUBlastService");
121   }
122
123   private java.util.HashSet ports = null;
124
125   public java.util.Iterator getPorts()
126   {
127     if (ports == null)
128     {
129       ports = new java.util.HashSet();
130       ports.add(new javax.xml.namespace.QName("WSWUBlast"));
131     }
132     return ports.iterator();
133   }
134
135 }