Coverage Report - fr.paris.lutece.plugins.address.business.axis.AdresseServiceLocator
 
Classes in this File Line Coverage Branch Coverage Complexity
AdresseServiceLocator
0 %
0/52
0 %
0/12
2,133
 
 1  
 /**
 2  
  * AdresseServiceLocator.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  
 
 8  
 package fr.paris.lutece.plugins.address.business.axis;
 9  
 
 10  
 public class AdresseServiceLocator extends org.apache.axis.client.Service implements fr.paris.lutece.plugins.address.business.axis.AdresseService {
 11  
 
 12  0
     public AdresseServiceLocator() {
 13  0
     }
 14  
 
 15  
 
 16  
     public AdresseServiceLocator(org.apache.axis.EngineConfiguration config) {
 17  0
         super(config);
 18  0
     }
 19  
 
 20  
     public AdresseServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
 21  0
         super(wsdlLoc, sName);
 22  0
     }
 23  
 
 24  
     // Use to get a proxy class for AdresseServiceHttpPort
 25  0
     private java.lang.String AdresseServiceHttpPort_address = "http://10.100.33.45:8080/AdressesServices-1.0/services/AdresseService";
 26  
 
 27  
     public java.lang.String getAdresseServiceHttpPortAddress() {
 28  0
         return AdresseServiceHttpPort_address;
 29  
     }
 30  
 
 31  
     // The WSDD service name defaults to the port name.
 32  0
     private java.lang.String AdresseServiceHttpPortWSDDServiceName = "AdresseServiceHttpPort";
 33  
 
 34  
     public java.lang.String getAdresseServiceHttpPortWSDDServiceName() {
 35  0
         return AdresseServiceHttpPortWSDDServiceName;
 36  
     }
 37  
 
 38  
     public void setAdresseServiceHttpPortWSDDServiceName(java.lang.String name) {
 39  0
         AdresseServiceHttpPortWSDDServiceName = name;
 40  0
     }
 41  
 
 42  
     public fr.paris.lutece.plugins.address.business.axis.AdresseServicePortType getAdresseServiceHttpPort() throws javax.xml.rpc.ServiceException {
 43  
        java.net.URL endpoint;
 44  
         try {
 45  0
             endpoint = new java.net.URL(AdresseServiceHttpPort_address);
 46  
         }
 47  0
         catch (java.net.MalformedURLException e) {
 48  0
             throw new javax.xml.rpc.ServiceException(e);
 49  0
         }
 50  0
         return getAdresseServiceHttpPort(endpoint);
 51  
     }
 52  
 
 53  
     public fr.paris.lutece.plugins.address.business.axis.AdresseServicePortType getAdresseServiceHttpPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
 54  
         try {
 55  0
             fr.paris.lutece.plugins.address.business.axis.AdresseServiceHttpBindingStub _stub = new fr.paris.lutece.plugins.address.business.axis.AdresseServiceHttpBindingStub(portAddress, this);
 56  0
             _stub.setPortName(getAdresseServiceHttpPortWSDDServiceName());
 57  0
             return _stub;
 58  
         }
 59  0
         catch (org.apache.axis.AxisFault e) {
 60  0
             return null;
 61  
         }
 62  
     }
 63  
 
 64  
     public void setAdresseServiceHttpPortEndpointAddress(java.lang.String address) {
 65  0
         AdresseServiceHttpPort_address = address;
 66  0
     }
 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  
     public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
 74  
         try {
 75  0
             if (fr.paris.lutece.plugins.address.business.axis.AdresseServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
 76  0
                 fr.paris.lutece.plugins.address.business.axis.AdresseServiceHttpBindingStub _stub = new fr.paris.lutece.plugins.address.business.axis.AdresseServiceHttpBindingStub(new java.net.URL(AdresseServiceHttpPort_address), this);
 77  0
                 _stub.setPortName(getAdresseServiceHttpPortWSDDServiceName());
 78  0
                 return _stub;
 79  
             }
 80  
         }
 81  0
         catch (java.lang.Throwable t) {
 82  0
             throw new javax.xml.rpc.ServiceException(t);
 83  0
         }
 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  
     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 ("AdresseServiceHttpPort".equals(inputPortName)) {
 98  0
             return getAdresseServiceHttpPort();
 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  
     public javax.xml.namespace.QName getServiceName() {
 108  0
         return new javax.xml.namespace.QName("http://services.adresses.paris.fr", "AdresseService");
 109  
     }
 110  
 
 111  0
     private java.util.HashSet ports = null;
 112  
 
 113  
     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://services.adresses.paris.fr", "AdresseServiceHttpPort"));
 117  
         }
 118  0
         return ports.iterator();
 119  
     }
 120  
 
 121  
     /**
 122  
     * Set the endpoint address for the specified port name.
 123  
     */
 124  
     public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
 125  
         
 126  0
 if ("AdresseServiceHttpPort".equals(portName)) {
 127  0
             setAdresseServiceHttpPortEndpointAddress(address);
 128  
         }
 129  
         else 
 130  
 { // Unknown Port Name
 131  0
             throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
 132  
         }
 133  0
     }
 134  
 
 135  
     /**
 136  
     * Set the endpoint address for the specified port name.
 137  
     */
 138  
     public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
 139  0
         setEndpointAddress(portName.getLocalPart(), address);
 140  0
     }
 141  
 
 142  
 }