001: package org.objectweb.celtix.bus.ws.addressing;
002:
003: import java.util.ResourceBundle;
004:
005: import javax.xml.namespace.QName;
006:
007: import org.objectweb.celtix.common.i18n.BundleUtils;
008: import org.objectweb.celtix.ws.addressing.AddressingConstants;
009:
010: /**
011: * Encapsulation of version-specific WS-Addressing constants.
012: */
013: public class AddressingConstantsImpl implements AddressingConstants {
014:
015: private static final ResourceBundle BUNDLE = BundleUtils
016: .getBundle(AddressingConstantsImpl.class);
017:
018: public AddressingConstantsImpl() {
019: }
020:
021: /**
022: * @return namespace defined by the normative WS-Addressing Core schema
023: */
024: public String getNamespaceURI() {
025: return Names.WSA_NAMESPACE_NAME;
026: }
027:
028: /**
029: * @return prefix associated with the WS-Addressing namespace
030: */
031: public String getNamespacePrefix() {
032: return Names.WSA_NAMESPACE_PREFIX;
033: }
034:
035: /**
036: * @return namespace defined by the normative WS-Addressing WSDL bindings
037: * schema
038: */
039: public String getWSDLNamespaceURI() {
040: return Names.WSA_NAMESPACE_WSDL_NAME;
041: }
042:
043: /**
044: * @return prefix associated with the WS-Addressing WSDL bindings schema
045: */
046: public String getWSDLNamespacePrefix() {
047: return Names.WSA_NAMESPACE_WSDL_PREFIX;
048: }
049:
050: /**
051: * @return QName of the WSDL extensiblity element
052: */
053: public QName getWSDLExtensibilityQName() {
054: return Names.WSAW_USING_ADDRESSING_QNAME;
055: }
056:
057: /**
058: * @return QName of the wsaw:Action element
059: */
060: public QName getWSDLActionQName() {
061: return Names.WSAW_ACTION_QNAME;
062: }
063:
064: /**
065: * @return Anonymous address URI
066: */
067: public String getAnonymousURI() {
068: return Names.WSA_ANONYMOUS_ADDRESS;
069: }
070:
071: /**
072: * @return None address URI
073: */
074: public String getNoneURI() {
075: return Names.WSA_NONE_ADDRESS;
076: }
077:
078: /**
079: * @return QName of the From addressing header
080: */
081: public QName getFromQName() {
082: return Names.WSA_FROM_QNAME;
083: }
084:
085: /**
086: * @return QName of the To addressing header
087: */
088: public QName getToQName() {
089: return Names.WSA_TO_QNAME;
090: }
091:
092: /**
093: * @return QName of the ReplyTo addressing header
094: */
095: public QName getReplyToQName() {
096: return Names.WSA_REPLYTO_QNAME;
097: }
098:
099: /**
100: * @return QName of the FaultTo addressing header
101: */
102: public QName getFaultToQName() {
103: return Names.WSA_FAULTTO_QNAME;
104: }
105:
106: /**
107: * @return QName of the Action addressing header
108: */
109: public QName getActionQName() {
110: return Names.WSA_ACTION_QNAME;
111: }
112:
113: /**
114: * @return QName of the MessageID addressing header
115: */
116: public QName getMessageIDQName() {
117: return Names.WSA_MESSAGEID_QNAME;
118: }
119:
120: /**
121: * @return Default value for RelationshipType indicating a reply
122: * to the related message
123: */
124: public String getRelationshipReply() {
125: return Names.WSA_RELATIONSHIP_REPLY;
126: }
127:
128: /**
129: * @return QName of the RelatesTo addressing header
130: */
131: public QName getRelatesToQName() {
132: return Names.WSA_RELATESTO_QNAME;
133: }
134:
135: /**
136: * @return QName of the Relationship addressing header
137: */
138: public QName getRelationshipTypeQName() {
139: return Names.WSA_RELATIONSHIPTYPE_QNAME;
140: }
141:
142: /**
143: * @return QName of the Metadata
144: */
145: public QName getMetadataQName() {
146: return Names.WSA_METADATA_QNAME;
147: }
148:
149: /**
150: * @return QName of the Address
151: */
152: public QName getAddressQName() {
153: return Names.WSA_ADDRESS_QNAME;
154: }
155:
156: /**
157: * @return package name of the implementation
158: */
159: public String getPackageName() {
160: return AddressingConstantsImpl.class.getPackage().getName();
161: }
162:
163: /**
164: * @return QName of the reference parameter marker
165: */
166: public QName getIsReferenceParameterQName() {
167: return Names.WSA_IS_REFERENCE_PARAMETER_QNAME;
168: }
169:
170: /**
171: * @return QName of the Invalid Message Addressing Property fault subcode
172: */
173: public QName getInvalidMapQName() {
174: return Names.INVALID_MAP_QNAME;
175: }
176:
177: /**
178: * @return QName of the Message Addressing Property Required fault subcode
179: */
180: public QName getMapRequiredQName() {
181: return Names.MAP_REQUIRED_QNAME;
182: }
183:
184: /**
185: * @return QName of the Destination Unreachable fault subcode
186: */
187: public QName getDestinationUnreachableQName() {
188: return Names.DESTINATION_UNREACHABLE_QNAME;
189: }
190:
191: /**
192: * @return QName of the Action Not Supported fault subcode
193: */
194: public QName getActionNotSupportedQName() {
195: return Names.ACTION_NOT_SUPPORTED_QNAME;
196: }
197:
198: /**
199: * @return QName of the Endpoint Unavailable fault subcode
200: */
201: public QName getEndpointUnavailableQName() {
202: return Names.ENDPOINT_UNAVAILABLE_QNAME;
203: }
204:
205: /**
206: * @return Default Fault Action
207: */
208: public String getDefaultFaultAction() {
209: return Names.WSA_DEFAULT_FAULT_ACTION;
210: }
211:
212: /**
213: * @return Action Not Supported text
214: */
215: public String getActionNotSupportedText() {
216: return BUNDLE.getString("ACTION_NOT_SUPPORTED_MSG");
217: }
218:
219: /**
220: * @return Destination Unreachable text
221: */
222: public String getDestinationUnreachableText() {
223: return BUNDLE.getString("DESTINATION_UNREACHABLE_MSG");
224: }
225:
226: /**
227: * @return Endpoint Unavailable text
228: */
229: public String getEndpointUnavailableText() {
230: return BUNDLE.getString("ENDPOINT_UNAVAILABLE_MSG");
231: }
232:
233: /**
234: * @return Invalid Message Addressing Property text
235: */
236: public String getInvalidMapText() {
237: return BUNDLE.getString("INVALID_MAP_MSG");
238: }
239:
240: /**
241: * @return Message Addressing Property Required text
242: */
243: public String getMapRequiredText() {
244: return BUNDLE.getString("MAP_REQUIRED_MSG");
245: }
246:
247: /**
248: * @return Duplicate Message ID text
249: */
250: public String getDuplicateMessageIDText() {
251: return BUNDLE.getString("DUPLICATE_MESSAGE_ID_MSG");
252: }
253: }
|