CAS Unit Tests
Clover coverage report - CAS Unit Tests
Coverage timestamp: Mon Jul 4 2005 18:13:17 CDT
file stats: LOC: 140   Methods: 15
NCLOC: 94   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CommunityAuthorizationServiceLocator.java 0% 0% 0% 0%
coverage
 1    /**
 2    * CommunityAuthorizationServiceLocator.java
 3    *
 4    * This file was auto-generated from WSDL
 5    * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
 6    */
 7   
 8    package org.globus.cas;
 9   
 10    public class CommunityAuthorizationServiceLocator extends org.apache.axis.client.Service implements org.globus.cas.CommunityAuthorizationService {
 11   
 12  0 public CommunityAuthorizationServiceLocator() {
 13    }
 14   
 15   
 16  0 public CommunityAuthorizationServiceLocator(org.apache.axis.EngineConfiguration config) {
 17  0 super(config);
 18    }
 19   
 20  0 public CommunityAuthorizationServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
 21  0 super(wsdlLoc, sName);
 22    }
 23   
 24    // Use to get a proxy class for CASPortTypePort
 25    private java.lang.String CASPortTypePort_address = "http://localhost:8080/wsrf/services/";
 26   
 27  0 public java.lang.String getCASPortTypePortAddress() {
 28  0 return CASPortTypePort_address;
 29    }
 30   
 31    // The WSDD service name defaults to the port name.
 32    private java.lang.String CASPortTypePortWSDDServiceName = "CASPortTypePort";
 33   
 34  0 public java.lang.String getCASPortTypePortWSDDServiceName() {
 35  0 return CASPortTypePortWSDDServiceName;
 36    }
 37   
 38  0 public void setCASPortTypePortWSDDServiceName(java.lang.String name) {
 39  0 CASPortTypePortWSDDServiceName = name;
 40    }
 41   
 42  0 public org.globus.cas.CASPortType getCASPortTypePort() throws javax.xml.rpc.ServiceException {
 43  0 java.net.URL endpoint;
 44  0 try {
 45  0 endpoint = new java.net.URL(CASPortTypePort_address);
 46    }
 47    catch (java.net.MalformedURLException e) {
 48  0 throw new javax.xml.rpc.ServiceException(e);
 49    }
 50  0 return getCASPortTypePort(endpoint);
 51    }
 52   
 53  0 public org.globus.cas.CASPortType getCASPortTypePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 54  0 try {
 55  0 org.globus.cas.CASPortTypeSOAPBindingStub _stub = new org.globus.cas.CASPortTypeSOAPBindingStub(portAddress, this);
 56  0 _stub.setPortName(getCASPortTypePortWSDDServiceName());
 57  0 return _stub;
 58    }
 59    catch (org.apache.axis.AxisFault e) {
 60  0 return null;
 61    }
 62    }
 63   
 64  0 public void setCASPortTypePortEndpointAddress(java.lang.String address) {
 65  0 CASPortTypePort_address = address;
 66    }
 67   
 68    /**
 69    * For the given interface, get the stub implementation.
 70    * If this service has no port for the given interface,
 71    * then ServiceException is thrown.
 72    */
 73  0 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
 74  0 try {
 75  0 if (org.globus.cas.CASPortType.class.isAssignableFrom(serviceEndpointInterface)) {
 76  0 org.globus.cas.CASPortTypeSOAPBindingStub _stub = new org.globus.cas.CASPortTypeSOAPBindingStub(new java.net.URL(CASPortTypePort_address), this);
 77  0 _stub.setPortName(getCASPortTypePortWSDDServiceName());
 78  0 return _stub;
 79    }
 80    }
 81    catch (java.lang.Throwable t) {
 82  0 throw new javax.xml.rpc.ServiceException(t);
 83    }
 84  0 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
 85    }
 86   
 87    /**
 88    * For the given interface, get the stub implementation.
 89    * If this service has no port for the given interface,
 90    * then ServiceException is thrown.
 91    */
 92  0 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
 93  0 if (portName == null) {
 94  0 return getPort(serviceEndpointInterface);
 95    }
 96  0 java.lang.String inputPortName = portName.getLocalPart();
 97  0 if ("CASPortTypePort".equals(inputPortName)) {
 98  0 return getCASPortTypePort();
 99    }
 100    else {
 101  0 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
 102  0 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
 103  0 return _stub;
 104    }
 105    }
 106   
 107  0 public javax.xml.namespace.QName getServiceName() {
 108  0 return new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/service", "CommunityAuthorizationService");
 109    }
 110   
 111    private java.util.HashSet ports = null;
 112   
 113  0 public java.util.Iterator getPorts() {
 114  0 if (ports == null) {
 115  0 ports = new java.util.HashSet();
 116  0 ports.add(new javax.xml.namespace.QName("http://www.globus.org/07/2004/cas/service", "CASPortTypePort"));
 117    }
 118  0 return ports.iterator();
 119    }
 120   
 121    /**
 122    * Set the endpoint address for the specified port name.
 123    */
 124  0 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
 125  0 if ("CASPortTypePort".equals(portName)) {
 126  0 setCASPortTypePortEndpointAddress(address);
 127    }
 128    else { // Unknown Port Name
 129  0 throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
 130    }
 131    }
 132   
 133    /**
 134    * Set the endpoint address for the specified port name.
 135    */
 136  0 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
 137  0 setEndpointAddress(portName.getLocalPart(), address);
 138    }
 139   
 140    }