View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  /**
35   * SearchAssetServiceServiceLocator.java
36   *
37   * This file was auto-generated from WSDL
38   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
39   */
40  
41  package com.tvnavig.server.searchengine;
42  
43  public class SearchAssetServiceServiceLocator extends org.apache.axis.client.Service implements com.tvnavig.server.searchengine.SearchAssetServiceService {
44  
45      public SearchAssetServiceServiceLocator() {
46      }
47  
48  
49      public SearchAssetServiceServiceLocator(org.apache.axis.EngineConfiguration config) {
50          super(config);
51      }
52  
53      public SearchAssetServiceServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
54          super(wsdlLoc, sName);
55      }
56  
57      // Use to get a proxy class for SearchAssetService
58      private java.lang.String SearchAssetService_address = "http://v01-adminvnavig-rec7.apps.paris.mdp/tvnavig/default/services/OGCSearchAssetService";
59  
60      public java.lang.String getSearchAssetServiceAddress() {
61          return SearchAssetService_address;
62      }
63  
64      // The WSDD service name defaults to the port name.
65      private java.lang.String SearchAssetServiceWSDDServiceName = "SearchAssetService";
66  
67      public java.lang.String getSearchAssetServiceWSDDServiceName() {
68          return SearchAssetServiceWSDDServiceName;
69      }
70  
71      public void setSearchAssetServiceWSDDServiceName(java.lang.String name) {
72          SearchAssetServiceWSDDServiceName = name;
73      }
74  
75      public com.tvnavig.server.searchengine.SearchAssetService getSearchAssetService() throws javax.xml.rpc.ServiceException {
76         java.net.URL endpoint;
77          try {
78              endpoint = new java.net.URL(SearchAssetService_address);
79          }
80          catch (java.net.MalformedURLException e) {
81              throw new javax.xml.rpc.ServiceException(e);
82          }
83          return getSearchAssetService(endpoint);
84      }
85  
86      public com.tvnavig.server.searchengine.SearchAssetService getSearchAssetService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
87          try {
88              com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub _stub = new com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub(portAddress, this);
89              _stub.setPortName(getSearchAssetServiceWSDDServiceName());
90              return _stub;
91          }
92          catch (org.apache.axis.AxisFault e) {
93              return null;
94          }
95      }
96  
97      public void setSearchAssetServiceEndpointAddress(java.lang.String address) {
98          SearchAssetService_address = address;
99      }
100 
101     /**
102      * For the given interface, get the stub implementation.
103      * If this service has no port for the given interface,
104      * then ServiceException is thrown.
105      */
106     public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
107         try {
108             if (com.tvnavig.server.searchengine.SearchAssetService.class.isAssignableFrom(serviceEndpointInterface)) {
109                 com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub _stub = new com.tvnavig.server.searchengine.SearchAssetServiceSoapBindingStub(new java.net.URL(SearchAssetService_address), this);
110                 _stub.setPortName(getSearchAssetServiceWSDDServiceName());
111                 return _stub;
112             }
113         }
114         catch (java.lang.Throwable t) {
115             throw new javax.xml.rpc.ServiceException(t);
116         }
117         throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
118     }
119 
120     /**
121      * For the given interface, get the stub implementation.
122      * If this service has no port for the given interface,
123      * then ServiceException is thrown.
124      */
125     public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
126         if (portName == null) {
127             return getPort(serviceEndpointInterface);
128         }
129         java.lang.String inputPortName = portName.getLocalPart();
130         if ("SearchAssetService".equals(inputPortName)) {
131             return getSearchAssetService();
132         }
133         else  {
134             java.rmi.Remote _stub = getPort(serviceEndpointInterface);
135             ((org.apache.axis.client.Stub) _stub).setPortName(portName);
136             return _stub;
137         }
138     }
139 
140     public javax.xml.namespace.QName getServiceName() {
141         return new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetServiceService");
142     }
143 
144     private java.util.HashSet ports = null;
145 
146     public java.util.Iterator getPorts() {
147         if (ports == null) {
148             ports = new java.util.HashSet();
149             ports.add(new javax.xml.namespace.QName("http://searchengine.server.tvnavig.com", "SearchAssetService"));
150         }
151         return ports.iterator();
152     }
153 
154     /**
155     * Set the endpoint address for the specified port name.
156     */
157     public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
158         
159 if ("SearchAssetService".equals(portName)) {
160             setSearchAssetServiceEndpointAddress(address);
161         }
162         else 
163 { // Unknown Port Name
164             throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
165         }
166     }
167 
168     /**
169     * Set the endpoint address for the specified port name.
170     */
171     public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
172         setEndpointAddress(portName.getLocalPart(), address);
173     }
174 
175 }