View Javadoc

1   /*
2    * Copyright 2008 Members of the EGEE Collaboration.
3    * Copyright 2008 University Corporation for Advanced Internet Development, Inc.
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.opensaml.ws.wsaddressing;
18  
19  import javax.xml.namespace.QName;
20  
21  /**
22   * WS-Addressing 1.0 constants.
23   * 
24   * @see "WS-Addressing 1.0 - Core"
25   * 
26   */
27  public class WSAddressingConstants {
28      
29      /** WS-Addressing 1.0 namespace. */
30      public static final String WSA_NS= "http://www.w3.org/2005/08/addressing";
31  
32      /** WS-Addressing prefix. */
33      public static final String WSA_PREFIX= "wsa";
34      
35      // SOAP fault codes
36      
37      /** WS-Addressing SOAP fault code: "wsa:InvalidAddressingHeader". */
38      public static final QName SOAP_FAULT_INVALID_ADDRESSING_HEADER =
39          new QName(WSA_NS, "InvalidAddressingHeader", WSA_PREFIX);
40      
41      /** WS-Addressing SOAP fault code: "wsa:InvalidAddress". */
42      public static final QName SOAP_FAULT_INVALID_ADDRESS =
43          new QName(WSA_NS, "InvalidAddress", WSA_PREFIX);
44      
45      /** WS-Addressing SOAP fault code: "wsa:InvalidEPR". */
46      public static final QName SOAP_FAULT_INVALID_EPR =
47          new QName(WSA_NS, "InvalidEPR", WSA_PREFIX);
48      
49      /** WS-Addressing SOAP fault code: "wsa:InvalidCardinality". */
50      public static final QName SOAP_FAULT_INVALID_CARDINALITY =
51          new QName(WSA_NS, "InvalidCardinality", WSA_PREFIX);
52      
53      /** WS-Addressing SOAP fault code: "wsa:MissingAddressInEPR". */
54      public static final QName SOAP_FAULT_MISSING_ADDRESS_IN_EPR =
55          new QName(WSA_NS, "MissingAddressInEPR", WSA_PREFIX);
56      
57      /** WS-Addressing SOAP fault code: "wsa:DuplicateMessageID". */
58      public static final QName SOAP_FAULT_DUPLICATE_MESSAGE_ID =
59          new QName(WSA_NS, "DuplicateMessageID", WSA_PREFIX);
60      
61      /** WS-Addressing SOAP fault code: "wsa:ActionMismatch". */
62      public static final QName SOAP_FAULT_ACTION_MISMATCH =
63          new QName(WSA_NS, "ActionMismatch", WSA_PREFIX);
64      
65      /** WS-Addressing SOAP fault code: "wsa:MessageAddressingHeaderRequired". */
66      public static final QName SOAP_FAULT_MESSAGE_ADDRESSING_HEADER_REQUIRED =
67          new QName(WSA_NS, "MessageAddressingHeaderRequired", WSA_PREFIX);
68      
69      /** WS-Addressing SOAP fault code: "wsa:DestinationUnreachable". */
70      public static final QName SOAP_FAULT_DESTINATION_UNREACHABLE =
71          new QName(WSA_NS, "DestinationUnreachable", WSA_PREFIX);
72      
73      /** WS-Addressing SOAP fault code: "wsa:ActionNotSupported". */
74      public static final QName SOAP_FAULT_ACTION_NOT_SUPPORTED =
75          new QName(WSA_NS, "ActionNotSupported", WSA_PREFIX);
76      
77      /** WS-Addressing SOAP fault code: "wsa:EndpointUnavailable". */
78      public static final QName SOAP_FAULT_ENDPOINT_UNAVAILABLE =
79          new QName(WSA_NS, "EndpointUnavailable", WSA_PREFIX);
80      
81      /** Prevent instantiation. */
82      private WSAddressingConstants() { }
83  
84  }