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  
24  /**
25   * SOAP 1.1 constants
26   */
27  public class SOAP11Constants implements SOAPConstants {
28      /**
29       *
30       */
31      private static final long serialVersionUID = 3809268485386395322L;
32      private static final QName HEADER_QNAME = new QName(WSConstants.URI_SOAP11_ENV, WSConstants.ELEM_HEADER);
33      private static final QName BODY_QNAME = new QName(WSConstants.URI_SOAP11_ENV, WSConstants.ELEM_BODY);
34      private static final QName ROLE_QNAME = new QName(WSConstants.URI_SOAP11_ENV, WSConstants.ATTR_ACTOR);
35  
36      public String getEnvelopeURI() {
37          return WSConstants.URI_SOAP11_ENV;
38      }
39  
40      public QName getHeaderQName() {
41          return HEADER_QNAME;
42      }
43  
44      public QName getBodyQName() {
45          return BODY_QNAME;
46      }
47  
48      /**
49       * Obtain the QName for the role attribute (actor/role)
50       */
51      public QName getRoleAttributeQName() {
52          return ROLE_QNAME;
53      }
54  
55      /**
56       * Obtain the "next" role/actor URI
57       */
58      public String getNextRoleURI() {
59          return WSConstants.URI_SOAP11_NEXT_ACTOR;
60      }
61  
62      /**
63       * Obtain the MustUnderstand string
64       */
65      public String getMustUnderstand() {
66          return "1";
67      }
68  
69  }