Save This Page
Home » geronimo-2.2-source-release » org.apache.geronimo.axis.builder » [javadoc | source]
    1   /**
    2    *
    3    * Copyright 2003-2004 The Apache Software Foundation
    4    *
    5    *  Licensed under the Apache License, Version 2.0 (the "License");
    6    *  you may not use this file except in compliance with the License.
    7    *  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   package org.apache.geronimo.axis.builder;
   18   
   19   import java.net.URI;
   20   import javax.wsdl.Definition;
   21   import javax.wsdl.Port;
   22   import javax.xml.namespace.QName;
   23   
   24   import org.apache.geronimo.xbeans.j2ee.JavaWsdlMappingType;
   25   import org.apache.geronimo.xbeans.j2ee.PortComponentHandlerType;
   26   import org.apache.geronimo.xbeans.j2ee.ServiceEndpointInterfaceMappingType;
   27   
   28   /**
   29    * @version $Rev:  $ $Date:  $
   30    */
   31   public class PortInfo {
   32       private final String portName;
   33       private final QName portQName;
   34       private final SchemaInfoBuilder schemaInfoBuilder;
   35       private final JavaWsdlMappingType javaWsdlMapping;
   36       private final ServiceEndpointInterfaceMappingType seiMapping;
   37       private final String seInterfaceName;
   38       private final PortComponentHandlerType[] handlers;
   39       private final Port port;
   40       private final URI contextURI;
   41   
   42       private final String wsdlLocation;
   43   
   44       public PortInfo(String portName, QName portQName, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMappingType javaWsdlMapping, String seiInterfaceName, PortComponentHandlerType[] handlers, Port port, ServiceEndpointInterfaceMappingType seiMapping, String wsdlLocation, URI contextURI) {
   45           this.portName = portName;
   46           this.portQName = portQName;
   47           this.schemaInfoBuilder = schemaInfoBuilder;
   48           this.javaWsdlMapping = javaWsdlMapping;
   49           this.seInterfaceName = seiInterfaceName;
   50           this.handlers = handlers;
   51           this.port = port;
   52           this.seiMapping = seiMapping;
   53           this.wsdlLocation = wsdlLocation;
   54           this.contextURI = contextURI;
   55       }
   56   
   57       public String getWsdlLocation() {
   58           return wsdlLocation;
   59       }
   60   
   61       public String getPortName() {
   62           return getPortComponentName();
   63       }
   64   
   65       public String getPortComponentName() {
   66           return portName;
   67       }
   68   
   69       public QName getPortQName() {
   70           return portQName;
   71       }
   72   
   73       public Port getPort() {
   74           return port;
   75       }
   76   
   77       public SchemaInfoBuilder getSchemaInfoBuilder() {
   78           return schemaInfoBuilder;
   79       }
   80   
   81       public Definition getDefinition() {
   82           return schemaInfoBuilder.getDefinition();
   83       }
   84   
   85       public JavaWsdlMappingType getJavaWsdlMapping() {
   86           return javaWsdlMapping;
   87       }
   88   
   89       public String getServiceEndpointInterfaceName() {
   90           return seInterfaceName;
   91       }
   92   
   93   
   94       public ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping() {
   95           return seiMapping;
   96       }
   97   
   98       public PortComponentHandlerType[] getHandlers() {
   99           return handlers;
  100       }
  101   
  102       public URI getContextURI() {
  103           return contextURI;
  104       }
  105   }

Save This Page
Home » geronimo-2.2-source-release » org.apache.geronimo.axis.builder » [javadoc | source]