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.1 constants
26 *
27 * @author Glen Daniels (gdaniels@apache.org)
28 * @author Andras Avar (andras.avar@nokia.com)
29 */
30 public class SOAP11Constants implements SOAPConstants {
31 /**
32 *
33 */
34 private static final long serialVersionUID = 3809268485386395322L;
35 private static QName headerQName = new QName(WSConstants.URI_SOAP11_ENV,
36 WSConstants.ELEM_HEADER);
37 private static QName bodyQName = new QName(WSConstants.URI_SOAP11_ENV,
38 WSConstants.ELEM_BODY);
39 private static QName roleQName = new QName(WSConstants.URI_SOAP11_ENV,
40 WSConstants.ATTR_ACTOR);
41
42 public String getEnvelopeURI() {
43 return WSConstants.URI_SOAP11_ENV;
44 }
45
46 public QName getHeaderQName() {
47 return headerQName;
48 }
49
50 public QName getBodyQName() {
51 return bodyQName;
52 }
53
54 /**
55 * Obtain the QName for the role attribute (actor/role)
56 */
57 public QName getRoleAttributeQName() {
58 return roleQName;
59 }
60
61 /**
62 * Obtain the "next" role/actor URI
63 */
64 public String getNextRoleURI() {
65 return WSConstants.URI_SOAP11_NEXT_ACTOR;
66 }
67
68 /**
69 * Obtain the MustUnderstand string
70 */
71 public String getMustUnderstand() {
72 return "1";
73 }
74
75 }