PageRenderTime 28ms CodeModel.GetById 15ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/projects/sharepoint-proto/source/java/com/google/enterprise/connector/sharepoint/generated/gssacl/GssAclMonitorLocator.java

http://google-enterprise-connector-manager.googlecode.com/
Java | 202 lines | 142 code | 32 blank | 28 comment | 13 complexity | 8fcd63b84760c81a255816ff7ea5aebf MD5 | raw file
  1/**
  2 * GssAclMonitorLocator.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.gssacl;
  9
 10public class GssAclMonitorLocator extends org.apache.axis.client.Service implements com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitor {
 11
 12    public GssAclMonitorLocator() {
 13    }
 14
 15
 16    public GssAclMonitorLocator(org.apache.axis.EngineConfiguration config) {
 17        super(config);
 18    }
 19
 20    public GssAclMonitorLocator(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 GssAclMonitorSoap
 25    private java.lang.String GssAclMonitorSoap_address = "http://gdc04.gdc-psl.net:5555/_vti_bin/GssAcl.asmx";
 26
 27    public java.lang.String getGssAclMonitorSoapAddress() {
 28        return GssAclMonitorSoap_address;
 29    }
 30
 31    // The WSDD service name defaults to the port name.
 32    private java.lang.String GssAclMonitorSoapWSDDServiceName = "GssAclMonitorSoap";
 33
 34    public java.lang.String getGssAclMonitorSoapWSDDServiceName() {
 35        return GssAclMonitorSoapWSDDServiceName;
 36    }
 37
 38    public void setGssAclMonitorSoapWSDDServiceName(java.lang.String name) {
 39        GssAclMonitorSoapWSDDServiceName = name;
 40    }
 41
 42    public com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_PortType getGssAclMonitorSoap() throws javax.xml.rpc.ServiceException {
 43       java.net.URL endpoint;
 44        try {
 45            endpoint = new java.net.URL(GssAclMonitorSoap_address);
 46        }
 47        catch (java.net.MalformedURLException e) {
 48            throw new javax.xml.rpc.ServiceException(e);
 49        }
 50        return getGssAclMonitorSoap(endpoint);
 51    }
 52
 53    public com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_PortType getGssAclMonitorSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 54        try {
 55            com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_BindingStub(portAddress, this);
 56            _stub.setPortName(getGssAclMonitorSoapWSDDServiceName());
 57            return _stub;
 58        }
 59        catch (org.apache.axis.AxisFault e) {
 60            return null;
 61        }
 62    }
 63
 64    public void setGssAclMonitorSoapEndpointAddress(java.lang.String address) {
 65        GssAclMonitorSoap_address = address;
 66    }
 67
 68
 69    // Use to get a proxy class for GssAclMonitorSoap12
 70    private java.lang.String GssAclMonitorSoap12_address = "http://gdc04.gdc-psl.net:5555/_vti_bin/GssAcl.asmx";
 71
 72    public java.lang.String getGssAclMonitorSoap12Address() {
 73        return GssAclMonitorSoap12_address;
 74    }
 75
 76    // The WSDD service name defaults to the port name.
 77    private java.lang.String GssAclMonitorSoap12WSDDServiceName = "GssAclMonitorSoap12";
 78
 79    public java.lang.String getGssAclMonitorSoap12WSDDServiceName() {
 80        return GssAclMonitorSoap12WSDDServiceName;
 81    }
 82
 83    public void setGssAclMonitorSoap12WSDDServiceName(java.lang.String name) {
 84        GssAclMonitorSoap12WSDDServiceName = name;
 85    }
 86
 87    public com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_PortType getGssAclMonitorSoap12() throws javax.xml.rpc.ServiceException {
 88       java.net.URL endpoint;
 89        try {
 90            endpoint = new java.net.URL(GssAclMonitorSoap12_address);
 91        }
 92        catch (java.net.MalformedURLException e) {
 93            throw new javax.xml.rpc.ServiceException(e);
 94        }
 95        return getGssAclMonitorSoap12(endpoint);
 96    }
 97
 98    public com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_PortType getGssAclMonitorSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 99        try {
100            com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap12Stub(portAddress, this);
101            _stub.setPortName(getGssAclMonitorSoap12WSDDServiceName());
102            return _stub;
103        }
104        catch (org.apache.axis.AxisFault e) {
105            return null;
106        }
107    }
108
109    public void setGssAclMonitorSoap12EndpointAddress(java.lang.String address) {
110        GssAclMonitorSoap12_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.gssacl.GssAclMonitorSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
123                com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_BindingStub _stub = new com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_BindingStub(new java.net.URL(GssAclMonitorSoap_address), this);
124                _stub.setPortName(getGssAclMonitorSoapWSDDServiceName());
125                return _stub;
126            }
127            if (com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
128                com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap12Stub _stub = new com.google.enterprise.connector.sharepoint.generated.gssacl.GssAclMonitorSoap12Stub(new java.net.URL(GssAclMonitorSoap12_address), this);
129                _stub.setPortName(getGssAclMonitorSoap12WSDDServiceName());
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 ("GssAclMonitorSoap".equals(inputPortName)) {
150            return getGssAclMonitorSoap();
151        }
152        else if ("GssAclMonitorSoap12".equals(inputPortName)) {
153            return getGssAclMonitorSoap12();
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("gssAcl.generated.sharepoint.connector.enterprise.google.com", "GssAclMonitor");
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("gssAcl.generated.sharepoint.connector.enterprise.google.com", "GssAclMonitorSoap"));
172            ports.add(new javax.xml.namespace.QName("gssAcl.generated.sharepoint.connector.enterprise.google.com", "GssAclMonitorSoap12"));
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 ("GssAclMonitorSoap".equals(portName)) {
183            setGssAclMonitorSoapEndpointAddress(address);
184        }
185        else
186if ("GssAclMonitorSoap12".equals(portName)) {
187            setGssAclMonitorSoap12EndpointAddress(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}