01: package org.objectweb.celtix.bus.ws.rm;
02:
03: import java.util.Collections;
04: import java.util.HashSet;
05: import java.util.Set;
06:
07: import javax.xml.namespace.QName;
08:
09: /**
10: * Holder for WS-RM names (of headers, namespaces etc.).
11: */
12: public final class Names {
13:
14: public static final String WSRM_NAMESPACE_NAME = "http://schemas.xmlsoap.org/ws/2005/02/rm";
15:
16: public static final String WSRMP_NAMESPACE_NAME = "http://schemas.xmlsoap.org/ws/2005/02/rm/policy";
17:
18: public static final String WSA_NAMESPACE_NAME = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
19:
20: public static final String WSRM_NAMESPACE_PREFIX = "wsrm";
21:
22: public static final String WSRM_WSDL_NAMESPACE_NAME = WSRM_NAMESPACE_NAME
23: + "/wsdl";
24:
25: public static final String CELTIX_WSRM_NAMESPACE_NAME = "http://celtix.objectweb.org/ws/rm";
26:
27: public static final String CELTIX_WSRM_WSDL_NAMESPACE_NAME = CELTIX_WSRM_NAMESPACE_NAME
28: + "/wsdl";
29:
30: public static final String WSRM_CREATE_SEQUENCE_ACTION = WSRM_NAMESPACE_NAME
31: + "/CreateSequence";
32:
33: public static final String WSRM_CREATE_SEQUENCE_RESPONSE_ACTION = WSRM_NAMESPACE_NAME
34: + "/CreateSequenceResponse";
35:
36: public static final String WSRM_TERMINATE_SEQUENCE_ACTION = WSRM_NAMESPACE_NAME
37: + "/TerminateSequence";
38:
39: public static final String WSRM_LAST_MESSAGE_ACTION = WSRM_NAMESPACE_NAME
40: + "/LastMessage";
41:
42: public static final String WSRM_SEQUENCE_ACKNOWLEDGMENT_ACTION = WSRM_NAMESPACE_NAME
43: + "/SequenceAcknowledgement";
44:
45: public static final String WSRM_SEQUENCE_INFO_ACTION = CELTIX_WSRM_NAMESPACE_NAME
46: + "/SequenceInfo";
47:
48: public static final String WSRM_UNKNOWN_SEQUENCE_FAULT_CODE = "UnknownSequence";
49:
50: public static final String WSRM_SEQUENCE_TERMINATED_FAULT_CODE = "SequenceTerminated";
51:
52: public static final String WSRM_INVALID_ACKNOWLEDGMENT_FAULT_CODE = "InvalidAcknowledgement";
53:
54: public static final String WSRM_MESSAGE_NUMBER_ROLLOVER_FAULT_CODE = "MessageNumberRollover";
55:
56: public static final String WSRM_CREATE_SEQUENCE_REFUSED_FAULT_CODE = "CreateSequenceRefused";
57:
58: public static final String WSRM_LAST_MESSAGE_NUMBER_EXCEEDED_FAULT_CODE = "LastMessageNumberExceeded";
59:
60: public static final String WSRM_SEQUENCE_NAME = "Sequence";
61:
62: public static final QName WSRM_SEQUENCE_QNAME = new QName(
63: WSRM_NAMESPACE_NAME, WSRM_SEQUENCE_NAME);
64:
65: public static final String WSRM_SEQUENCE_ACK_NAME = "SequenceAcknowledgement";
66:
67: public static final QName WSRM_SEQUENCE_ACK_QNAME = new QName(
68: WSRM_NAMESPACE_NAME, WSRM_SEQUENCE_ACK_NAME);
69:
70: public static final String WSRM_ACK_REQUESTED_NAME = "AckRequested";
71:
72: public static final QName WSRM_ACK_REQUESTED_QNAME = new QName(
73: WSRM_NAMESPACE_NAME, WSRM_ACK_REQUESTED_NAME);
74:
75: public static final String WSA_ANONYMOUS_ADDRESS = WSA_NAMESPACE_NAME
76: + "/anonymous";
77: public static final String WSA_NONE_ADDRESS = WSA_NAMESPACE_NAME
78: + "/none";
79:
80: /**
81: * The set of headers understood by the protocol binding.
82: */
83: public static final Set<QName> HEADERS;
84: static {
85: Set<QName> headers = new HashSet<QName>();
86: headers.add(WSRM_SEQUENCE_QNAME);
87: headers.add(WSRM_SEQUENCE_ACK_QNAME);
88: headers.add(WSRM_ACK_REQUESTED_QNAME);
89: HEADERS = Collections.unmodifiableSet(headers);
90: }
91:
92: /**
93: * Prevents instantiation.
94: */
95: private Names() {
96: }
97: }
|