001: package org.objectweb.celtix.bus.ws.addressing;
002:
003: import java.util.Collections;
004: import java.util.HashSet;
005: import java.util.Set;
006: import javax.xml.namespace.QName;
007:
008: /**
009: * Holder for WS-Addressing names (of headers, namespaces etc.).
010: */
011: public final class Names {
012:
013: public static final String WSA_NAMESPACE_NAME = "http://www.w3.org/2005/08/addressing";
014: public static final String WSA_NAMESPACE_WSDL_NAME = WSA_NAMESPACE_NAME
015: + "/wsdl";
016: public static final String WSA_NAMESPACE_PREFIX = "wsa";
017: public static final String WSA_NAMESPACE_WSDL_PREFIX = "wsaw";
018: public static final String WSA_NAMESPACE_PATTERN = "/addressing";
019:
020: public static final String WSA_REFERENCE_PARAMETERS_NAME = "ReferenceParameters";
021: public static final QName WSA_REFERENCE_PARAMETERS_QNAME = new QName(
022: WSA_NAMESPACE_NAME, WSA_REFERENCE_PARAMETERS_NAME);
023:
024: public static final String WSA_IS_REFERENCE_PARAMETER_NAME = "IsReferenceParameter";
025: public static final QName WSA_IS_REFERENCE_PARAMETER_QNAME = new QName(
026: WSA_NAMESPACE_NAME, WSA_IS_REFERENCE_PARAMETER_NAME);
027:
028: public static final String WSA_ADDRESS_NAME = "Address";
029: public static final QName WSA_ADDRESS_QNAME = new QName(
030: WSA_NAMESPACE_NAME, WSA_ADDRESS_NAME);
031:
032: public static final String WSA_METADATA_NAME = "Metadata";
033: public static final QName WSA_METADATA_QNAME = new QName(
034: WSA_NAMESPACE_NAME, WSA_METADATA_NAME);
035:
036: public static final String WSA_FROM_NAME = "From";
037: public static final QName WSA_FROM_QNAME = new QName(
038: WSA_NAMESPACE_NAME, WSA_FROM_NAME);
039:
040: public static final String WSA_TO_NAME = "To";
041: public static final QName WSA_TO_QNAME = new QName(
042: WSA_NAMESPACE_NAME, WSA_TO_NAME);
043:
044: public static final String WSA_REPLYTO_NAME = "ReplyTo";
045: public static final QName WSA_REPLYTO_QNAME = new QName(
046: WSA_NAMESPACE_NAME, WSA_REPLYTO_NAME);
047:
048: public static final String WSA_FAULTTO_NAME = "FaultTo";
049: public static final QName WSA_FAULTTO_QNAME = new QName(
050: WSA_NAMESPACE_NAME, "FaultTo");
051:
052: public static final String WSA_ACTION_NAME = "Action";
053: public static final QName WSA_ACTION_QNAME = new QName(
054: WSA_NAMESPACE_NAME, WSA_ACTION_NAME);
055:
056: public static final String WSA_MESSAGEID_NAME = "MessageID";
057: public static final QName WSA_MESSAGEID_QNAME = new QName(
058: WSA_NAMESPACE_NAME, WSA_MESSAGEID_NAME);
059:
060: public static final String WSA_REPLY_NAME = "reply";
061: public static final String WSA_RELATIONSHIP_DELIMITER = "/";
062: public static final String WSA_RELATIONSHIP_REPLY = WSA_NAMESPACE_NAME
063: + WSA_RELATIONSHIP_DELIMITER + WSA_REPLY_NAME;
064:
065: public static final String WSA_RELATESTO_NAME = "RelatesTo";
066: public static final QName WSA_RELATESTO_QNAME = new QName(
067: WSA_NAMESPACE_NAME, WSA_RELATESTO_NAME);
068:
069: public static final String WSA_RELATIONSHIPTYPE_NAME = "RelationshipType";
070: public static final QName WSA_RELATIONSHIPTYPE_QNAME = new QName(
071: WSA_NAMESPACE_NAME, WSA_RELATIONSHIPTYPE_NAME);
072:
073: public static final String WSA_ANONYMOUS_ADDRESS = WSA_NAMESPACE_NAME
074: + "/anonymous";
075: public static final String WSA_NONE_ADDRESS = WSA_NAMESPACE_NAME
076: + "/none";
077:
078: public static final String WSA_FAULT_DELIMITER = "/fault";
079: public static final String WSA_DEFAULT_FAULT_ACTION = WSA_NAMESPACE_NAME
080: + WSA_FAULT_DELIMITER;
081: // REVISIT delimiter should be ":" if target namespace is a URN
082: public static final String WSA_ACTION_DELIMITER = "/";
083:
084: public static final String WSAW_ACTION_NAME = "Action";
085: public static final QName WSAW_ACTION_QNAME = new QName(
086: WSA_NAMESPACE_WSDL_NAME, WSAW_ACTION_NAME);
087:
088: public static final String WSAW_USING_ADDRESSING_NAME = "UsingAddressing";
089: public static final QName WSAW_USING_ADDRESSING_QNAME = new QName(
090: WSA_NAMESPACE_WSDL_NAME, WSAW_USING_ADDRESSING_NAME);
091:
092: public static final String WSDL_INSTANCE_NAMESPACE_NAME = "http://www.w3.org/2004/08/wsdl-instance";
093:
094: public static final String INVALID_MAP_NAME = "InvalidMessageAddressingProperty";
095: public static final QName INVALID_MAP_QNAME = new QName(
096: WSA_NAMESPACE_NAME, INVALID_MAP_NAME);
097: public static final String MAP_REQUIRED_NAME = "MessageAddressingPropertyRequired";
098: public static final QName MAP_REQUIRED_QNAME = new QName(
099: WSA_NAMESPACE_NAME, MAP_REQUIRED_NAME);
100: public static final String DESTINATION_UNREACHABLE_NAME = "DestinationUnreachable";
101: public static final QName DESTINATION_UNREACHABLE_QNAME = new QName(
102: WSA_NAMESPACE_NAME, DESTINATION_UNREACHABLE_NAME);
103: public static final String ACTION_NOT_SUPPORTED_NAME = "ActionNotSupported";
104: public static final QName ACTION_NOT_SUPPORTED_QNAME = new QName(
105: WSA_NAMESPACE_NAME, ACTION_NOT_SUPPORTED_NAME);
106: public static final String ENDPOINT_UNAVAILABLE_NAME = "EndpointUnavailable";
107: public static final QName ENDPOINT_UNAVAILABLE_QNAME = new QName(
108: WSA_NAMESPACE_NAME, ENDPOINT_UNAVAILABLE_NAME);
109:
110: public static final String DUPLICATE_MESSAGE_ID_NAME = "DuplicateMessageID";
111: public static final QName DUPLICATE_MESSAGE_ID_QNAME = new QName(
112: WSA_NAMESPACE_NAME, DUPLICATE_MESSAGE_ID_NAME);
113:
114: public static final String SOAP11HTTP_ADDRESSING_BINDING = "http://schemas.xmlsoap.org/soap/envelope/?addressing=ms";
115: public static final String SOAP12HTTP_ADDRESSING_BINDING = "http://www.w3.org/2003/05/soap-envelope?addressing=ms";
116:
117: public static final String SOAP_ACTION_HEADER = "SOAPAction";
118: /**
119: * The set of headers understood by the protocol binding.
120: */
121: public static final Set<QName> HEADERS;
122: static {
123: Set<QName> headers = new HashSet<QName>();
124: headers.add(WSA_FROM_QNAME);
125: headers.add(WSA_TO_QNAME);
126: headers.add(WSA_REPLYTO_QNAME);
127: headers.add(WSA_FAULTTO_QNAME);
128: headers.add(WSA_ACTION_QNAME);
129: headers.add(WSA_MESSAGEID_QNAME);
130: HEADERS = Collections.unmodifiableSet(headers);
131: }
132:
133: /**
134: * Prevents instantiation.
135: */
136: private Names() {
137: }
138: }
|