KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bus > ws > addressing > AddressingConstantsImpl


1 package org.objectweb.celtix.bus.ws.addressing;
2
3
4 import java.util.ResourceBundle JavaDoc;
5
6 import javax.xml.namespace.QName JavaDoc;
7
8 import org.objectweb.celtix.common.i18n.BundleUtils;
9 import org.objectweb.celtix.ws.addressing.AddressingConstants;
10
11 /**
12  * Encapsulation of version-specific WS-Addressing constants.
13  */

14 public class AddressingConstantsImpl implements AddressingConstants {
15
16     private static final ResourceBundle JavaDoc BUNDLE =
17         BundleUtils.getBundle(AddressingConstantsImpl.class);
18     
19     public AddressingConstantsImpl() {
20     }
21
22     /**
23      * @return namespace defined by the normative WS-Addressing Core schema
24      */

25     public String JavaDoc getNamespaceURI() {
26         return Names.WSA_NAMESPACE_NAME;
27     }
28
29     /**
30      * @return prefix associated with the WS-Addressing namespace
31      */

32     public String JavaDoc getNamespacePrefix() {
33         return Names.WSA_NAMESPACE_PREFIX;
34     }
35
36     /**
37      * @return namespace defined by the normative WS-Addressing WSDL bindings
38      * schema
39      */

40     public String JavaDoc getWSDLNamespaceURI() {
41         return Names.WSA_NAMESPACE_WSDL_NAME;
42     }
43
44     /**
45      * @return prefix associated with the WS-Addressing WSDL bindings schema
46      */

47     public String JavaDoc getWSDLNamespacePrefix() {
48         return Names.WSA_NAMESPACE_WSDL_PREFIX;
49     }
50     
51     /**
52      * @return QName of the WSDL extensiblity element
53      */

54     public QName JavaDoc getWSDLExtensibilityQName() {
55         return Names.WSAW_USING_ADDRESSING_QNAME;
56     }
57
58     /**
59      * @return QName of the wsaw:Action element
60      */

61     public QName JavaDoc getWSDLActionQName() {
62         return Names.WSAW_ACTION_QNAME;
63     }
64
65     /**
66      * @return Anonymous address URI
67      */

68     public String JavaDoc getAnonymousURI() {
69         return Names.WSA_ANONYMOUS_ADDRESS;
70     }
71     
72     /**
73      * @return None address URI
74      */

75     public String JavaDoc getNoneURI() {
76         return Names.WSA_NONE_ADDRESS;
77     }
78
79     /**
80      * @return QName of the From addressing header
81      */

82     public QName JavaDoc getFromQName() {
83         return Names.WSA_FROM_QNAME;
84     }
85     
86     /**
87      * @return QName of the To addressing header
88      */

89     public QName JavaDoc getToQName() {
90         return Names.WSA_TO_QNAME;
91     }
92     
93     /**
94      * @return QName of the ReplyTo addressing header
95      */

96     public QName JavaDoc getReplyToQName() {
97         return Names.WSA_REPLYTO_QNAME;
98     }
99     
100     /**
101      * @return QName of the FaultTo addressing header
102      */

103     public QName JavaDoc getFaultToQName() {
104         return Names.WSA_FAULTTO_QNAME;
105     }
106
107     /**
108      * @return QName of the Action addressing header
109      */

110     public QName JavaDoc getActionQName() {
111         return Names.WSA_ACTION_QNAME;
112     }
113     
114     /**
115      * @return QName of the MessageID addressing header
116      */

117     public QName JavaDoc getMessageIDQName() {
118         return Names.WSA_MESSAGEID_QNAME;
119     }
120     
121     /**
122      * @return Default value for RelationshipType indicating a reply
123      * to the related message
124      */

125     public String JavaDoc getRelationshipReply() {
126         return Names.WSA_RELATIONSHIP_REPLY;
127     }
128     
129     /**
130      * @return QName of the RelatesTo addressing header
131      */

132     public QName JavaDoc getRelatesToQName() {
133         return Names.WSA_RELATESTO_QNAME;
134     }
135     
136     /**
137      * @return QName of the Relationship addressing header
138      */

139     public QName JavaDoc getRelationshipTypeQName() {
140         return Names.WSA_RELATIONSHIPTYPE_QNAME;
141     }
142     
143     /**
144      * @return QName of the Metadata
145      */

146     public QName JavaDoc getMetadataQName() {
147         return Names.WSA_METADATA_QNAME;
148     }
149     
150     /**
151      * @return QName of the Address
152      */

153     public QName JavaDoc getAddressQName() {
154         return Names.WSA_ADDRESS_QNAME;
155     }
156     
157     /**
158      * @return package name of the implementation
159      */

160     public String JavaDoc getPackageName() {
161         return AddressingConstantsImpl.class.getPackage().getName();
162     }
163     
164     /**
165      * @return QName of the reference parameter marker
166      */

167     public QName JavaDoc getIsReferenceParameterQName() {
168         return Names.WSA_IS_REFERENCE_PARAMETER_QNAME;
169     }
170     
171     /**
172      * @return QName of the Invalid Message Addressing Property fault subcode
173      */

174     public QName JavaDoc getInvalidMapQName() {
175         return Names.INVALID_MAP_QNAME;
176     }
177     
178     /**
179      * @return QName of the Message Addressing Property Required fault subcode
180      */

181     public QName JavaDoc getMapRequiredQName() {
182         return Names.MAP_REQUIRED_QNAME;
183     }
184     
185     /**
186      * @return QName of the Destination Unreachable fault subcode
187      */

188     public QName JavaDoc getDestinationUnreachableQName() {
189         return Names.DESTINATION_UNREACHABLE_QNAME;
190     }
191     
192     /**
193      * @return QName of the Action Not Supported fault subcode
194      */

195     public QName JavaDoc getActionNotSupportedQName() {
196         return Names.ACTION_NOT_SUPPORTED_QNAME;
197     }
198     
199     /**
200      * @return QName of the Endpoint Unavailable fault subcode
201      */

202     public QName JavaDoc getEndpointUnavailableQName() {
203         return Names.ENDPOINT_UNAVAILABLE_QNAME;
204     }
205     
206     /**
207      * @return Default Fault Action
208      */

209     public String JavaDoc getDefaultFaultAction() {
210         return Names.WSA_DEFAULT_FAULT_ACTION;
211     }
212     
213     /**
214      * @return Action Not Supported text
215      */

216     public String JavaDoc getActionNotSupportedText() {
217         return BUNDLE.getString("ACTION_NOT_SUPPORTED_MSG");
218     }
219
220     /**
221      * @return Destination Unreachable text
222      */

223     public String JavaDoc getDestinationUnreachableText() {
224         return BUNDLE.getString("DESTINATION_UNREACHABLE_MSG");
225     }
226     
227     /**
228      * @return Endpoint Unavailable text
229      */

230     public String JavaDoc getEndpointUnavailableText() {
231         return BUNDLE.getString("ENDPOINT_UNAVAILABLE_MSG");
232     }
233     
234     /**
235      * @return Invalid Message Addressing Property text
236      */

237     public String JavaDoc getInvalidMapText() {
238         return BUNDLE.getString("INVALID_MAP_MSG");
239     }
240     
241     /**
242      * @return Message Addressing Property Required text
243      */

244     public String JavaDoc getMapRequiredText() {
245         return BUNDLE.getString("MAP_REQUIRED_MSG");
246     }
247
248     /**
249      * @return Duplicate Message ID text
250      */

251     public String JavaDoc getDuplicateMessageIDText() {
252         return BUNDLE.getString("DUPLICATE_MESSAGE_ID_MSG");
253     }
254 }
255
Popular Tags