PageRenderTime 34ms CodeModel.GetById 6ms app.highlight 24ms RepoModel.GetById 1ms app.codeStats 0ms

/projects/sharepoint-proto/source/java/com/google/enterprise/connector/sharepoint/generated/sitedata/SiteDataLocator.java

http://google-enterprise-connector-manager.googlecode.com/
Java | 202 lines | 142 code | 32 blank | 28 comment | 15 complexity | e5bf418158752f241d093736a8c27c80 MD5 | raw file
  1/**
  2 * SiteDataLocator.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.sitedata;
  9
 10public class SiteDataLocator extends org.apache.axis.client.Service implements com.google.enterprise.connector.sharepoint.generated.sitedata.SiteData {
 11
 12    public SiteDataLocator() {
 13    }
 14
 15
 16    public SiteDataLocator(org.apache.axis.EngineConfiguration config) {
 17        super(config);
 18    }
 19
 20    public SiteDataLocator(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 SiteDataSoap12
 25    private java.lang.String SiteDataSoap12_address = "http://entpoint05/_vti_bin/SiteData.asmx";
 26
 27    public java.lang.String getSiteDataSoap12Address() {
 28        return SiteDataSoap12_address;
 29    }
 30
 31    // The WSDD service name defaults to the port name.
 32    private java.lang.String SiteDataSoap12WSDDServiceName = "SiteDataSoap12";
 33
 34    public java.lang.String getSiteDataSoap12WSDDServiceName() {
 35        return SiteDataSoap12WSDDServiceName;
 36    }
 37
 38    public void setSiteDataSoap12WSDDServiceName(java.lang.String name) {
 39        SiteDataSoap12WSDDServiceName = name;
 40    }
 41
 42    public com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_PortType getSiteDataSoap12() throws javax.xml.rpc.ServiceException {
 43       java.net.URL endpoint;
 44        try {
 45            endpoint = new java.net.URL(SiteDataSoap12_address);
 46        }
 47        catch (java.net.MalformedURLException e) {
 48            throw new javax.xml.rpc.ServiceException(e);
 49        }
 50        return getSiteDataSoap12(endpoint);
 51    }
 52
 53    public com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_PortType getSiteDataSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 54        try {
 55            com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap12Stub(portAddress, this);
 56            _stub.setPortName(getSiteDataSoap12WSDDServiceName());
 57            return _stub;
 58        }
 59        catch (org.apache.axis.AxisFault e) {
 60            return null;
 61        }
 62    }
 63
 64    public void setSiteDataSoap12EndpointAddress(java.lang.String address) {
 65        SiteDataSoap12_address = address;
 66    }
 67
 68
 69    // Use to get a proxy class for SiteDataSoap
 70    private java.lang.String SiteDataSoap_address = "http://entpoint05/_vti_bin/SiteData.asmx";
 71
 72    public java.lang.String getSiteDataSoapAddress() {
 73        return SiteDataSoap_address;
 74    }
 75
 76    // The WSDD service name defaults to the port name.
 77    private java.lang.String SiteDataSoapWSDDServiceName = "SiteDataSoap";
 78
 79    public java.lang.String getSiteDataSoapWSDDServiceName() {
 80        return SiteDataSoapWSDDServiceName;
 81    }
 82
 83    public void setSiteDataSoapWSDDServiceName(java.lang.String name) {
 84        SiteDataSoapWSDDServiceName = name;
 85    }
 86
 87    public com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_PortType getSiteDataSoap() throws javax.xml.rpc.ServiceException {
 88       java.net.URL endpoint;
 89        try {
 90            endpoint = new java.net.URL(SiteDataSoap_address);
 91        }
 92        catch (java.net.MalformedURLException e) {
 93            throw new javax.xml.rpc.ServiceException(e);
 94        }
 95        return getSiteDataSoap(endpoint);
 96    }
 97
 98    public com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_PortType getSiteDataSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 99        try {
100            com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_BindingStub(portAddress, this);
101            _stub.setPortName(getSiteDataSoapWSDDServiceName());
102            return _stub;
103        }
104        catch (org.apache.axis.AxisFault e) {
105            return null;
106        }
107    }
108
109    public void setSiteDataSoapEndpointAddress(java.lang.String address) {
110        SiteDataSoap_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.sitedata.SiteDataSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
123                com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap12Stub(new java.net.URL(SiteDataSoap12_address), this);
124                _stub.setPortName(getSiteDataSoap12WSDDServiceName());
125                return _stub;
126            }
127            if (com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
128                com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.sitedata.SiteDataSoap_BindingStub(new java.net.URL(SiteDataSoap_address), this);
129                _stub.setPortName(getSiteDataSoapWSDDServiceName());
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 ("SiteDataSoap12".equals(inputPortName)) {
150            return getSiteDataSoap12();
151        }
152        else if ("SiteDataSoap".equals(inputPortName)) {
153            return getSiteDataSoap();
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/", "SiteData");
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/", "SiteDataSoap12"));
172            ports.add(new javax.xml.namespace.QName("http://schemas.microsoft.com/sharepoint/soap/", "SiteDataSoap"));
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 ("SiteDataSoap12".equals(portName)) {
183            setSiteDataSoap12EndpointAddress(address);
184        }
185        else 
186if ("SiteDataSoap".equals(portName)) {
187            setSiteDataSoapEndpointAddress(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}