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