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