001 /**
002 *
003 * Licensed to the Apache Software Foundation (ASF) under one or more
004 * contributor license agreements. See the NOTICE file distributed with
005 * this work for additional information regarding copyright ownership.
006 * The ASF licenses this file to You under the Apache License, Version 2.0
007 * (the "License"); you may not use this file except in compliance with
008 * the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018 package org.apache.geronimo.webservices.builder;
019
020 import java.net.URI;
021 import javax.wsdl.Definition;
022 import javax.wsdl.Port;
023 import javax.xml.namespace.QName;
024
025 import org.apache.geronimo.xbeans.j2ee.JavaWsdlMappingType;
026 import org.apache.geronimo.xbeans.j2ee.PortComponentHandlerType;
027 import org.apache.geronimo.xbeans.j2ee.ServiceEndpointInterfaceMappingType;
028
029 /**
030 * @version $Rev: 470597 $ $Date: 2006-11-02 15:30:55 -0800 (Thu, 02 Nov 2006) $
031 */
032 public class PortInfo {
033 private final String portComponentName;
034 private final QName portQName;
035 private final SchemaInfoBuilder schemaInfoBuilder;
036 private final JavaWsdlMappingType javaWsdlMapping;
037 private final ServiceEndpointInterfaceMappingType seiMapping;
038 private final String seInterfaceName;
039 private final PortComponentHandlerType[] handlers;
040 private final Port port;
041 private final URI contextURI;
042
043 private final String wsdlLocation;
044
045 public PortInfo(String portComponentName, QName portQName, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMappingType javaWsdlMapping, String seiInterfaceName, PortComponentHandlerType[] handlers, Port port, ServiceEndpointInterfaceMappingType seiMapping, String wsdlLocation, URI contextURI) {
046 this.portComponentName = portComponentName;
047 this.portQName = portQName;
048 this.schemaInfoBuilder = schemaInfoBuilder;
049 this.javaWsdlMapping = javaWsdlMapping;
050 this.seInterfaceName = seiInterfaceName;
051 this.handlers = handlers;
052 this.port = port;
053 this.seiMapping = seiMapping;
054 this.wsdlLocation = wsdlLocation;
055 this.contextURI = contextURI;
056 }
057
058 public String getWsdlLocation() {
059 return wsdlLocation;
060 }
061
062 public String getPortComponentName() {
063 return portComponentName;
064 }
065
066 public QName getPortQName() {
067 return portQName;
068 }
069
070 public Port getPort() {
071 return port;
072 }
073
074 public SchemaInfoBuilder getSchemaInfoBuilder() {
075 return schemaInfoBuilder;
076 }
077
078 public Definition getDefinition() {
079 return schemaInfoBuilder.getDefinition();
080 }
081
082 public JavaWsdlMappingType getJavaWsdlMapping() {
083 return javaWsdlMapping;
084 }
085
086 public String getServiceEndpointInterfaceName() {
087 return seInterfaceName;
088 }
089
090
091 public ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping() {
092 return seiMapping;
093 }
094
095 public PortComponentHandlerType[] getHandlers() {
096 return handlers;
097 }
098
099 public URI getContextURI() {
100 return contextURI;
101 }
102 }