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.ws.security;
21
22 import javax.xml.namespace.QName;
23
24 /**
25 * SOAP 1.2 constants
26 *
27 * @author Glen Daniels (gdaniels@apache.org)
28 * @author Andras Avar (andras.avar@nokia.com)
29 */
30 public class SOAP12Constants implements SOAPConstants {
31 /**
32 *
33 */
34 private static final long serialVersionUID = 3784866613259361834L;
35 private static QName headerQName = new QName(WSConstants.URI_SOAP12_ENV,
36 WSConstants.ELEM_HEADER);
37 private static QName bodyQName = new QName(WSConstants.URI_SOAP12_ENV,
38 WSConstants.ELEM_BODY);
39 private static QName roleQName = new QName(WSConstants.URI_SOAP12_ENV,
40 WSConstants.ATTR_ROLE);
41
42 // Public constants for SOAP 1.2
43
44 /**
45 * MessageContext property name for webmethod
46 */
47 public static final String PROP_WEBMETHOD = "soap12.webmethod";
48
49 public String getEnvelopeURI() {
50 return WSConstants.URI_SOAP12_ENV;
51 }
52
53 public QName getHeaderQName() {
54 return headerQName;
55 }
56
57 public QName getBodyQName() {
58 return bodyQName;
59 }
60
61 /**
62 * Obtain the QName for the role attribute (actor/role)
63 */
64 public QName getRoleAttributeQName() {
65 return roleQName;
66 }
67
68 /**
69 * Obtain the "next" role/actor URI
70 */
71 public String getNextRoleURI() {
72 return WSConstants.URI_SOAP12_NEXT_ROLE;
73 }
74
75 /**
76 * Obtain the MustUnderstand string
77 */
78 public String getMustUnderstand() {
79 return "true";
80 }
81
82 }