KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > webservices > builder > PortInfo


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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.webservices.builder;
18
19 import java.net.URI JavaDoc;
20 import javax.wsdl.Definition;
21 import javax.wsdl.Port;
22 import javax.xml.namespace.QName JavaDoc;
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: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
30  */

31 public class PortInfo {
32     private final String JavaDoc portComponentName;
33     private final QName JavaDoc portQName;
34     private final SchemaInfoBuilder schemaInfoBuilder;
35     private final JavaWsdlMappingType javaWsdlMapping;
36     private final ServiceEndpointInterfaceMappingType seiMapping;
37     private final String JavaDoc seInterfaceName;
38     private final PortComponentHandlerType[] handlers;
39     private final Port port;
40     private final URI JavaDoc contextURI;
41
42     private final String JavaDoc wsdlLocation;
43
44     public PortInfo(String JavaDoc portComponentName, QName JavaDoc portQName, SchemaInfoBuilder schemaInfoBuilder, JavaWsdlMappingType javaWsdlMapping, String JavaDoc seiInterfaceName, PortComponentHandlerType[] handlers, Port port, ServiceEndpointInterfaceMappingType seiMapping, String JavaDoc wsdlLocation, URI JavaDoc contextURI) {
45         this.portComponentName = portComponentName;
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 JavaDoc getWsdlLocation() {
58         return wsdlLocation;
59     }
60
61     public String JavaDoc getPortComponentName() {
62         return portComponentName;
63     }
64
65     public QName JavaDoc getPortQName() {
66         return portQName;
67     }
68
69     public Port getPort() {
70         return port;
71     }
72
73     public SchemaInfoBuilder getSchemaInfoBuilder() {
74         return schemaInfoBuilder;
75     }
76
77     public Definition getDefinition() {
78         return schemaInfoBuilder.getDefinition();
79     }
80
81     public JavaWsdlMappingType getJavaWsdlMapping() {
82         return javaWsdlMapping;
83     }
84
85     public String JavaDoc getServiceEndpointInterfaceName() {
86         return seInterfaceName;
87     }
88
89
90     public ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping() {
91         return seiMapping;
92     }
93
94     public PortComponentHandlerType[] getHandlers() {
95         return handlers;
96     }
97
98     public URI JavaDoc getContextURI() {
99         return contextURI;
100     }
101 }
102
Popular Tags