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.2 constants
26 */
27 public class SOAP12Constants implements SOAPConstants {
28 /**
29 *
30 */
31 private static final long serialVersionUID = 3784866613259361834L;
32 private static final QName HEADER_QNAME = new QName(WSConstants.URI_SOAP12_ENV, WSConstants.ELEM_HEADER);
33 private static final QName BODY_QNAME = new QName(WSConstants.URI_SOAP12_ENV, WSConstants.ELEM_BODY);
34 private static final QName ROLE_QNAME = new QName(WSConstants.URI_SOAP12_ENV, WSConstants.ATTR_ROLE);
35
36 // Public constants for SOAP 1.2
37
38 /**
39 * MessageContext property name for webmethod
40 */
41 public static final String PROP_WEBMETHOD = "soap12.webmethod";
42
43 public String getEnvelopeURI() {
44 return WSConstants.URI_SOAP12_ENV;
45 }
46
47 public QName getHeaderQName() {
48 return HEADER_QNAME;
49 }
50
51 public QName getBodyQName() {
52 return BODY_QNAME;
53 }
54
55 /**
56 * Obtain the QName for the role attribute (actor/role)
57 */
58 public QName getRoleAttributeQName() {
59 return ROLE_QNAME;
60 }
61
62 /**
63 * Obtain the "next" role/actor URI
64 */
65 public String getNextRoleURI() {
66 return WSConstants.URI_SOAP12_NEXT_ROLE;
67 }
68
69 /**
70 * Obtain the MustUnderstand string
71 */
72 public String getMustUnderstand() {
73 return "true";
74 }
75
76 }