KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > addressing > EndpointReference


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.axis2.addressing;
17
18 import org.apache.axis2.om.OMElement;
19
20 import javax.xml.namespace.QName JavaDoc;
21
22 /**
23  * Class EndpointReference
24  * TODO : Policy has not been integrated to this
25  */

26 public class EndpointReference {
27     /**
28      * this can be one of the followings
29      * AddressingConstants.WSA_FROM
30      * AddressingConstants.WSA_REPLY_TO
31      * AddressingConstants.WSA_FAULT_TO
32      */

33     private String JavaDoc messageInformationHeaderType;
34
35     /**
36      * Required property. may be a logical address or identifier for the service endpoint
37      */

38     private String JavaDoc address;
39
40     /**
41      * Field interfaceName
42      */

43     private QName JavaDoc interfaceName;
44
45     /**
46      * Field referenceProperties
47      */

48     private AnyContentType referenceProperties;
49
50     /**
51      * Field referenceParameters
52      */

53     private AnyContentType referenceParameters;
54
55     /**
56      * Field serviceName
57      */

58     private ServiceName serviceName;
59
60     private OMElement policies;
61
62     /**
63      * @param messageInformationHeaderType this can be one of the followings
64      * AddressingConstants.WSA_FROM
65      * AddressingConstants.WSA_REPLY_TO
66      * AddressingConstants.WSA_FAULT_TO
67      * @param address
68      */

69     public EndpointReference(String JavaDoc messageInformationHeaderType,
70                              String JavaDoc address) {
71         this.messageInformationHeaderType = messageInformationHeaderType;
72         this.address = address;
73     }
74
75     /**
76      * Method getMessageInformationHeaderType
77      *
78      * @return
79      */

80     public String JavaDoc getMessageInformationHeaderType() {
81         return messageInformationHeaderType;
82     }
83
84     /**
85      * Method setMessageInformationHeaderType
86      *
87      * @param messageInformationHeaderType
88      */

89     public void setMessageInformationHeaderType(
90             String JavaDoc messageInformationHeaderType) {
91         this.messageInformationHeaderType = messageInformationHeaderType;
92     }
93
94     /**
95      * Method getValue
96      *
97      * @return
98      */

99     public String JavaDoc getAddress() {
100         return address;
101     }
102
103     /**
104      * Method setValue
105      *
106      * @param address
107      */

108     public void setAddress(String JavaDoc address) {
109         this.address = address;
110     }
111
112     /**
113      * Method getInterfaceName
114      *
115      * @return
116      */

117     public QName JavaDoc getInterfaceName() {
118         return interfaceName;
119     }
120
121     /**
122      * Method setInterfaceName
123      *
124      * @param interfaceName
125      */

126     public void setInterfaceName(QName JavaDoc interfaceName) {
127         this.interfaceName = interfaceName;
128     }
129
130     /**
131      * Method getReferenceProperties
132      *
133      * @return
134      */

135     public AnyContentType getReferenceProperties() {
136         return referenceProperties;
137     }
138
139     /**
140      * Method setReferenceProperties
141      *
142      * @param referenceProperties
143      */

144     public void setReferenceProperties(AnyContentType referenceProperties) {
145         this.referenceProperties = referenceProperties;
146     }
147
148     /**
149      * Method getReferenceParameters
150      *
151      * @return
152      */

153     public AnyContentType getReferenceParameters() {
154         return referenceParameters;
155     }
156
157     /**
158      * Method setReferenceParameters
159      *
160      * @param referenceParameters
161      */

162     public void setReferenceParameters(AnyContentType referenceParameters) {
163         this.referenceParameters = referenceParameters;
164     }
165
166     /**
167      * Method getServiceName
168      *
169      * @return
170      */

171     public ServiceName getServiceName() {
172         return serviceName;
173     }
174
175     /**
176      * Method setServiceName
177      *
178      * @param serviceName
179      */

180     public void setServiceName(ServiceName serviceName) {
181         this.serviceName = serviceName;
182     }
183
184     public OMElement getPolicies() {
185         return policies;
186     }
187
188     public void setPolicies(OMElement policies) {
189         this.policies = policies;
190     }
191
192     
193 }
194
Popular Tags