View Javadoc
1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements. See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied. See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package org.apache.wss4j.dom;
21  
22  import javax.xml.namespace.QName;
23  import java.io.Serializable;
24  
25  /**
26   * An interface defining SOAP constants.  This allows various parts of the
27   * engine to avoid hardcoding dependence on a particular SOAP version and its
28   * associated URIs, etc.
29   * <p/>
30   * This might be fleshed out later to encapsulate factories for behavioral
31   * objects which act differently depending on the SOAP version, but for now
32   * it just supplies common namespaces + QNames.
33   */
34  public interface SOAPConstants extends Serializable {
35      /**
36       * SOAP 1.1 constants - thread-safe and shared
37       */
38      SOAP11Constants SOAP11_CONSTANTS = new SOAP11Constants();
39      /**
40       * SOAP 1.2 constants - thread-safe and shared
41       */
42      SOAP12Constants SOAP12_CONSTANTS = new SOAP12Constants();
43  
44      /**
45       * Obtain the envelope namespace for this version of SOAP
46       */
47      String getEnvelopeURI();
48  
49      /**
50       * Obtain the QName for the Header element
51       */
52      QName getHeaderQName();
53  
54      /**
55       * Obtain the QName for the Body element
56       */
57      QName getBodyQName();
58  
59      /**
60       * Obtain the QName for the role attribute (actor/role)
61       */
62      QName getRoleAttributeQName();
63  
64      /**
65       * Obtain the "next" role/actor URI
66       */
67      String getNextRoleURI();
68  
69      /**
70       * Obtain the "next" role/actor URI
71       */
72      String getMustUnderstand();
73  
74  
75  }