PageRenderTime 28ms CodeModel.GetById 13ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/projects/sharepoint-proto/source/java/com/google/enterprise/connector/sharepoint/generated/webs/WebsLocator.java

http://google-enterprise-connector-manager.googlecode.com/
Java | 202 lines | 142 code | 32 blank | 28 comment | 15 complexity | aa12ccb1132a51b9a6430fb39636e805 MD5 | raw file
  1/**
  2 * WebsLocator.java
  3 *
  4 * This file was auto-generated from WSDL
  5 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 */
  7
  8package com.google.enterprise.connector.sharepoint.generated.webs;
  9
 10public class WebsLocator extends org.apache.axis.client.Service implements com.google.enterprise.connector.sharepoint.generated.webs.Webs {
 11
 12    public WebsLocator() {
 13    }
 14
 15
 16    public WebsLocator(org.apache.axis.EngineConfiguration config) {
 17        super(config);
 18    }
 19
 20    public WebsLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
 21        super(wsdlLoc, sName);
 22    }
 23
 24    // Use to get a proxy class for WebsSoap12
 25    private java.lang.String WebsSoap12_address = "http://ps4312.persistent.co.in:43386/_vti_bin/Webs.asmx";
 26
 27    public java.lang.String getWebsSoap12Address() {
 28        return WebsSoap12_address;
 29    }
 30
 31    // The WSDD service name defaults to the port name.
 32    private java.lang.String WebsSoap12WSDDServiceName = "WebsSoap12";
 33
 34    public java.lang.String getWebsSoap12WSDDServiceName() {
 35        return WebsSoap12WSDDServiceName;
 36    }
 37
 38    public void setWebsSoap12WSDDServiceName(java.lang.String name) {
 39        WebsSoap12WSDDServiceName = name;
 40    }
 41
 42    public com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType getWebsSoap12() throws javax.xml.rpc.ServiceException {
 43       java.net.URL endpoint;
 44        try {
 45            endpoint = new java.net.URL(WebsSoap12_address);
 46        }
 47        catch (java.net.MalformedURLException e) {
 48            throw new javax.xml.rpc.ServiceException(e);
 49        }
 50        return getWebsSoap12(endpoint);
 51    }
 52
 53    public com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType getWebsSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 54        try {
 55            com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap12Stub(portAddress, this);
 56            _stub.setPortName(getWebsSoap12WSDDServiceName());
 57            return _stub;
 58        }
 59        catch (org.apache.axis.AxisFault e) {
 60            return null;
 61        }
 62    }
 63
 64    public void setWebsSoap12EndpointAddress(java.lang.String address) {
 65        WebsSoap12_address = address;
 66    }
 67
 68
 69    // Use to get a proxy class for WebsSoap
 70    private java.lang.String WebsSoap_address = "http://ps4312.persistent.co.in:43386/_vti_bin/Webs.asmx";
 71
 72    public java.lang.String getWebsSoapAddress() {
 73        return WebsSoap_address;
 74    }
 75
 76    // The WSDD service name defaults to the port name.
 77    private java.lang.String WebsSoapWSDDServiceName = "WebsSoap";
 78
 79    public java.lang.String getWebsSoapWSDDServiceName() {
 80        return WebsSoapWSDDServiceName;
 81    }
 82
 83    public void setWebsSoapWSDDServiceName(java.lang.String name) {
 84        WebsSoapWSDDServiceName = name;
 85    }
 86
 87    public com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType getWebsSoap() throws javax.xml.rpc.ServiceException {
 88       java.net.URL endpoint;
 89        try {
 90            endpoint = new java.net.URL(WebsSoap_address);
 91        }
 92        catch (java.net.MalformedURLException e) {
 93            throw new javax.xml.rpc.ServiceException(e);
 94        }
 95        return getWebsSoap(endpoint);
 96    }
 97
 98    public com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType getWebsSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 99        try {
100            com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_BindingStub(portAddress, this);
101            _stub.setPortName(getWebsSoapWSDDServiceName());
102            return _stub;
103        }
104        catch (org.apache.axis.AxisFault e) {
105            return null;
106        }
107    }
108
109    public void setWebsSoapEndpointAddress(java.lang.String address) {
110        WebsSoap_address = address;
111    }
112
113    /**
114     * For the given interface, get the stub implementation.
115     * If this service has no port for the given interface,
116     * then ServiceException is thrown.
117     * This service has multiple ports for a given interface;
118     * the proxy implementation returned may be indeterminate.
119     */
120    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
121        try {
122            if (com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
123                com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap12Stub(new java.net.URL(WebsSoap12_address), this);
124                _stub.setPortName(getWebsSoap12WSDDServiceName());
125                return _stub;
126            }
127            if (com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
128                com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.webs.WebsSoap_BindingStub(new java.net.URL(WebsSoap_address), this);
129                _stub.setPortName(getWebsSoapWSDDServiceName());
130                return _stub;
131            }
132        }
133        catch (java.lang.Throwable t) {
134            throw new javax.xml.rpc.ServiceException(t);
135        }
136        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
137    }
138
139    /**
140     * For the given interface, get the stub implementation.
141     * If this service has no port for the given interface,
142     * then ServiceException is thrown.
143     */
144    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
145        if (portName == null) {
146            return getPort(serviceEndpointInterface);
147        }
148        java.lang.String inputPortName = portName.getLocalPart();
149        if ("WebsSoap12".equals(inputPortName)) {
150            return getWebsSoap12();
151        }
152        else if ("WebsSoap".equals(inputPortName)) {
153            return getWebsSoap();
154        }
155        else  {
156            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
157            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
158            return _stub;
159        }
160    }
161
162    public javax.xml.namespace.QName getServiceName() {
163        return new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "Webs");
164    }
165
166    private java.util.HashSet ports = null;
167
168    public java.util.Iterator getPorts() {
169        if (ports == null) {
170            ports = new java.util.HashSet();
171            ports.add(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "WebsSoap12"));
172            ports.add(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "WebsSoap"));
173        }
174        return ports.iterator();
175    }
176
177    /**
178    * Set the endpoint address for the specified port name.
179    */
180    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
181        
182if ("WebsSoap12".equals(portName)) {
183            setWebsSoap12EndpointAddress(address);
184        }
185        else 
186if ("WebsSoap".equals(portName)) {
187            setWebsSoapEndpointAddress(address);
188        }
189        else 
190{ // Unknown Port Name
191            throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
192        }
193    }
194
195    /**
196    * Set the endpoint address for the specified port name.
197    */
198    public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
199        setEndpointAddress(portName.getLocalPart(), address);
200    }
201
202}