01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.jaxws.description.impl;
20:
21: import org.apache.axis2.jaxws.ExceptionFactory;
22: import org.apache.axis2.jaxws.i18n.Messages;
23:
24: import javax.xml.namespace.QName;
25: import javax.xml.ws.handler.PortInfo;
26:
27: public class PortInfoImpl implements PortInfo {
28: private QName serviceName = null;
29: private QName portName = null;
30: private String bindingId = null;
31:
32: /**
33: * @param serviceName
34: * @param portName
35: * @param bindingId
36: */
37: PortInfoImpl(QName serviceName, QName portName, String bindingId) {
38: super ();
39: if (serviceName == null) {
40: throw ExceptionFactory.makeWebServiceException(Messages
41: .getMessage("portInfoErr0", "<null>"));
42: }
43: if (portName == null) {
44: throw ExceptionFactory.makeWebServiceException(Messages
45: .getMessage("portInfoErr1", "<null>"));
46: }
47: if (bindingId == null) {
48: throw ExceptionFactory.makeWebServiceException(Messages
49: .getMessage("portInfoErr2", "<null>"));
50: }
51: this .serviceName = serviceName;
52: this .portName = portName;
53: this .bindingId = bindingId;
54: }
55:
56: public QName getServiceName() {
57: return serviceName;
58: }
59:
60: public QName getPortName() {
61: return portName;
62: }
63:
64: public String getBindingID() {
65: return bindingId;
66: }
67: }
|