⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 permisauthzservicelocator.java

📁 一个完整的XACML工程,学习XACML技术的好例子!
💻 JAVA
字号:
/*
* Copyright (c) 2000-2005, University of Salford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without 
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this 
* list of conditions and the following disclaimer.
* 
* Redistributions in binary form must reproduce the above copyright notice, 
* this list of conditions and the following disclaimer in the documentation 
* and/or other materials provided with the distribution. 
*
* Neither the name of the University of Salford nor the names of its 
* contributors may be used to endorse or promote products derived from this 
* software without specific prior written permission. 
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
* POSSIBILITY OF SUCH DAMAGE.
*/

/**
 * PermisAuthzServiceLocator.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package issrg.globus.PermisAuthz;

public class PermisAuthzServiceLocator extends org.apache.axis.client.Service implements issrg.globus.PermisAuthz.PermisAuthzService {

    // Use to get a proxy class for GridServiceSOAPBindingPort
    private final java.lang.String GridServiceSOAPBindingPort_address = "http://localhost/ogsa/services/PermisAuthzService";

    public java.lang.String getGridServiceSOAPBindingPortAddress() {
        return GridServiceSOAPBindingPort_address;
    }

    // The WSDD service name defaults to the port name.
    private java.lang.String GridServiceSOAPBindingPortWSDDServiceName = "GridServiceSOAPBindingPort";

    public java.lang.String getGridServiceSOAPBindingPortWSDDServiceName() {
        return GridServiceSOAPBindingPortWSDDServiceName;
    }

    public void setGridServiceSOAPBindingPortWSDDServiceName(java.lang.String name) {
        GridServiceSOAPBindingPortWSDDServiceName = name;
    }

    public org.gridforum.ogsi.GridService getGridServiceSOAPBindingPort() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(GridServiceSOAPBindingPort_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getGridServiceSOAPBindingPort(endpoint);
    }

    public org.gridforum.ogsi.GridService getGridServiceSOAPBindingPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub _stub = new org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub(portAddress, this);
            _stub.setPortName(getGridServiceSOAPBindingPortWSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }


    // Use to get a proxy class for PermisAuthzService
    private final java.lang.String PermisAuthzService_address = "http://localhost/ogsa/services/PermisAuthzService";

    public java.lang.String getPermisAuthzServiceAddress() {
        return PermisAuthzService_address;
    }

    // The WSDD service name defaults to the port name.
    private java.lang.String PermisAuthzServiceWSDDServiceName = "PermisAuthzService";

    public java.lang.String getPermisAuthzServiceWSDDServiceName() {
        return PermisAuthzServiceWSDDServiceName;
    }

    public void setPermisAuthzServiceWSDDServiceName(java.lang.String name) {
        PermisAuthzServiceWSDDServiceName = name;
    }

    public issrg.globus.PermisAuthz.PermisAuthzPortType getPermisAuthzService() throws javax.xml.rpc.ServiceException {
       java.net.URL endpoint;
        try {
            endpoint = new java.net.URL(PermisAuthzService_address);
        }
        catch (java.net.MalformedURLException e) {
            throw new javax.xml.rpc.ServiceException(e);
        }
        return getPermisAuthzService(endpoint);
    }

    public issrg.globus.PermisAuthz.PermisAuthzPortType getPermisAuthzService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
        try {
            issrg.globus.PermisAuthz.PermisAuthzServiceSoapBindingStub _stub = new issrg.globus.PermisAuthz.PermisAuthzServiceSoapBindingStub(portAddress, this);
            _stub.setPortName(getPermisAuthzServiceWSDDServiceName());
            return _stub;
        }
        catch (org.apache.axis.AxisFault e) {
            return null;
        }
    }

    /**
     * For the given interface, get the stub implementation.
     * If this service has no port for the given interface,
     * then ServiceException is thrown.
     */
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (org.gridforum.ogsi.GridService.class.isAssignableFrom(serviceEndpointInterface)) {
                org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub _stub = new org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub(new java.net.URL(GridServiceSOAPBindingPort_address), this);
                _stub.setPortName(getGridServiceSOAPBindingPortWSDDServiceName());
                return _stub;
            }
            if (issrg.globus.PermisAuthz.PermisAuthzPortType.class.isAssignableFrom(serviceEndpointInterface)) {
                issrg.globus.PermisAuthz.PermisAuthzServiceSoapBindingStub _stub = new issrg.globus.PermisAuthz.PermisAuthzServiceSoapBindingStub(new java.net.URL(PermisAuthzService_address), this);
                _stub.setPortName(getPermisAuthzServiceWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }

    /**
     * For the given interface, get the stub implementation.
     * If this service has no port for the given interface,
     * then ServiceException is thrown.
     */
    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        if (portName == null) {
            return getPort(serviceEndpointInterface);
        }
        String inputPortName = portName.getLocalPart();
        if ("GridServiceSOAPBindingPort".equals(inputPortName)) {
            return getGridServiceSOAPBindingPort();
        }
        else if ("PermisAuthzService".equals(inputPortName)) {
            return getPermisAuthzService();
        }
        else  {
            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
            return _stub;
        }
    }

    public javax.xml.namespace.QName getServiceName() {
        return new javax.xml.namespace.QName("http://globus.issrg/PermisAuthz", "PermisAuthzService");
    }

    private java.util.HashSet ports = null;

    public java.util.Iterator getPorts() {
        if (ports == null) {
            ports = new java.util.HashSet();
            ports.add(new javax.xml.namespace.QName("GridServiceSOAPBindingPort"));
            ports.add(new javax.xml.namespace.QName("PermisAuthzService"));
        }
        return ports.iterator();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -