update author list in license for (JAL-826)
[jalview.git] / src / uk / ac / ebi / www / WSWUBlastServiceLocator.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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 of the License, or (at your option) any later version.
10  * 
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package uk.ac.ebi.www;
19
20 public class WSWUBlastServiceLocator extends org.apache.axis.client.Service
21         implements uk.ac.ebi.www.WSWUBlastService
22 {
23
24   // Use to get a proxy class for WSWUBlast
25   private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
26
27   public java.lang.String getWSWUBlastAddress()
28   {
29     return WSWUBlast_address;
30   }
31
32   // The WSDD service name defaults to the port name.
33   private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
34
35   public java.lang.String getWSWUBlastWSDDServiceName()
36   {
37     return WSWUBlastWSDDServiceName;
38   }
39
40   public void setWSWUBlastWSDDServiceName(java.lang.String name)
41   {
42     WSWUBlastWSDDServiceName = name;
43   }
44
45   public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
46           throws javax.xml.rpc.ServiceException
47   {
48     java.net.URL endpoint;
49     try
50     {
51       endpoint = new java.net.URL(WSWUBlast_address);
52     } catch (java.net.MalformedURLException e)
53     {
54       return null; // unlikely as URL was validated in WSDL2Java
55     }
56     return getWSWUBlast(endpoint);
57   }
58
59   public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
60           throws javax.xml.rpc.ServiceException
61   {
62     try
63     {
64       uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
65               portAddress, this);
66       _stub.setPortName(getWSWUBlastWSDDServiceName());
67       return _stub;
68     } catch (org.apache.axis.AxisFault e)
69     {
70       return null;
71     }
72   }
73
74   /**
75    * For the given interface, get the stub implementation. If this service has
76    * no port for the given interface, then ServiceException is thrown.
77    */
78   public java.rmi.Remote getPort(Class serviceEndpointInterface)
79           throws javax.xml.rpc.ServiceException
80   {
81     try
82     {
83       if (uk.ac.ebi.www.WSWUBlast.class
84               .isAssignableFrom(serviceEndpointInterface))
85       {
86         uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
87                 new java.net.URL(WSWUBlast_address), this);
88         _stub.setPortName(getWSWUBlastWSDDServiceName());
89         return _stub;
90       }
91     } catch (java.lang.Throwable t)
92     {
93       throw new javax.xml.rpc.ServiceException(t);
94     }
95     throw new javax.xml.rpc.ServiceException(
96             "There is no stub implementation for the interface:  "
97                     + (serviceEndpointInterface == null ? "null"
98                             : serviceEndpointInterface.getName()));
99   }
100
101   /**
102    * For the given interface, get the stub implementation. If this service has
103    * no port for the given interface, then ServiceException is thrown.
104    */
105   public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
106           Class serviceEndpointInterface)
107           throws javax.xml.rpc.ServiceException
108   {
109     java.rmi.Remote _stub = getPort(serviceEndpointInterface);
110     ((org.apache.axis.client.Stub) _stub).setPortName(portName);
111     return _stub;
112   }
113
114   public javax.xml.namespace.QName getServiceName()
115   {
116     return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
117             "WSWUBlastService");
118   }
119
120   private java.util.HashSet ports = null;
121
122   public java.util.Iterator getPorts()
123   {
124     if (ports == null)
125     {
126       ports = new java.util.HashSet();
127       ports.add(new javax.xml.namespace.QName("WSWUBlast"));
128     }
129     return ports.iterator();
130   }
131
132 }