KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > addressing > om > AddressingHeaders


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.om;
17
18 import org.apache.axis2.addressing.EndpointReference;
19 import org.apache.axis2.addressing.miheaders.RelatesTo;
20 import org.apache.axis2.soap.SOAPHeader;
21
22 /**
23  * Class AddressingHeaders
24  */

25 public class AddressingHeaders {
26     /**
27      * Field wsaTo
28      */

29     private EndpointReference wsaTo;
30
31     /**
32      * Field wsaFrom
33      */

34     private EndpointReference wsaFrom;
35
36     /**
37      * Field wsaReply
38      */

39     private EndpointReference wsaReply;
40
41     /**
42      * Field wsaFaultTo
43      */

44     private EndpointReference wsaFaultTo;
45
46     /**
47      * Field action
48      */

49     private String JavaDoc action;
50
51     /**
52      * Field messageId
53      */

54     private String JavaDoc messageId;
55
56     /**
57      * Field relatesTo
58      */

59     private RelatesTo relatesTo;
60
61     /**
62      * Addressing Header MUST have a to and an action
63      *
64      * @param wsaTo
65      * @param action
66      */

67     public AddressingHeaders(EndpointReference wsaTo, String JavaDoc action) {
68         this.wsaTo = wsaTo;
69         this.action = action;
70     }
71
72      // ------------------- Setters and Getters --------------------------------------
73

74     /**
75      * Method getWsaTo
76      *
77      * @return
78      */

79     public EndpointReference getWsaTo() {
80         return wsaTo;
81     }
82
83     /**
84      * Method setWsaTo
85      *
86      * @param wsaTo
87      */

88     public void setWsaTo(EndpointReference wsaTo) {
89         this.wsaTo = wsaTo;
90     }
91
92     /**
93      * Method getWsaFrom
94      *
95      * @return
96      */

97     public EndpointReference getWsaFrom() {
98         return wsaFrom;
99     }
100
101     /**
102      * Method setWsaFrom
103      *
104      * @param wsaFrom
105      */

106     public void setWsaFrom(EndpointReference wsaFrom) {
107         this.wsaFrom = wsaFrom;
108     }
109
110     /**
111      * Method getWsaReply
112      *
113      * @return
114      */

115     public EndpointReference getWsaReply() {
116         return wsaReply;
117     }
118
119     /**
120      * Method setWsaReply
121      *
122      * @param wsaReply
123      */

124     public void setWsaReply(EndpointReference wsaReply) {
125         this.wsaReply = wsaReply;
126     }
127
128     /**
129      * Method getWsaFaultTo
130      *
131      * @return
132      */

133     public EndpointReference getWsaFaultTo() {
134         return wsaFaultTo;
135     }
136
137     /**
138      * Method setWsaFaultTo
139      *
140      * @param wsaFaultTo
141      */

142     public void setWsaFaultTo(EndpointReference wsaFaultTo) {
143         this.wsaFaultTo = wsaFaultTo;
144     }
145
146     /**
147      * Method getAction
148      *
149      * @return
150      */

151     public String JavaDoc getAction() {
152         return action;
153     }
154
155     /**
156      * Method setAction
157      *
158      * @param action
159      */

160     public void setAction(String JavaDoc action) {
161         this.action = action;
162     }
163
164     /**
165      * Method getMessageId
166      *
167      * @return
168      */

169     public String JavaDoc getMessageId() {
170         return messageId;
171     }
172
173     /**
174      * Method setMessageId
175      *
176      * @param messageId
177      */

178     public void setMessageId(String JavaDoc messageId) {
179         this.messageId = messageId;
180     }
181
182     /**
183      * Method getRelatesTo
184      *
185      * @return
186      */

187     public RelatesTo getRelatesTo() {
188         return relatesTo;
189     }
190
191     /**
192      * Method setRelatesTo
193      *
194      * @param relatesTo
195      */

196     public void setRelatesTo(RelatesTo relatesTo) {
197         this.relatesTo = relatesTo;
198     }
199
200     // --------------------------------------------------------------------------------------------
201
}
202
Popular Tags