KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > soap > SOAP11Constants


1 /*
2  * Copyright 2002-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.axis.soap;
17
18 import javax.xml.namespace.QName JavaDoc;
19
20 import org.apache.axis.Constants;
21
22 /**
23  * SOAP 1.1 constants
24  *
25  * @author Glen Daniels (gdaniels@apache.org)
26  * @author Andras Avar (andras.avar@nokia.com)
27  */

28 public class SOAP11Constants implements SOAPConstants {
29     private static QName JavaDoc headerQName = new QName JavaDoc(Constants.URI_SOAP11_ENV,
30                                                  Constants.ELEM_HEADER);
31     private static QName JavaDoc bodyQName = new QName JavaDoc(Constants.URI_SOAP11_ENV,
32                                                Constants.ELEM_BODY);
33     private static QName JavaDoc faultQName = new QName JavaDoc(Constants.URI_SOAP11_ENV,
34                                                 Constants.ELEM_FAULT);
35     private static QName JavaDoc roleQName = new QName JavaDoc(Constants.URI_SOAP11_ENV,
36                                                 Constants.ATTR_ACTOR);
37
38     public String JavaDoc getEnvelopeURI() {
39         return Constants.URI_SOAP11_ENV;
40     }
41
42     public String JavaDoc getEncodingURI() {
43         return Constants.URI_SOAP11_ENC;
44     }
45
46     public QName JavaDoc getHeaderQName() {
47         return headerQName;
48     }
49
50     public QName JavaDoc getBodyQName() {
51         return bodyQName;
52     }
53
54     public QName JavaDoc getFaultQName() {
55         return faultQName;
56     }
57
58     /**
59      * Obtain the QName for the role attribute (actor/role)
60      */

61     public QName JavaDoc getRoleAttributeQName() {
62         return roleQName;
63     }
64
65     /**
66      * Obtain the MIME content type
67      */

68     public String JavaDoc getContentType() {
69         return "text/xml";
70     }
71
72     /**
73      * Obtain the "next" role/actor URI
74      */

75     public String JavaDoc getNextRoleURI() {
76         return Constants.URI_SOAP11_NEXT_ACTOR;
77     }
78
79     /**
80      * Obtain the ref attribute name
81      */

82     public String JavaDoc getAttrHref() {
83         return Constants.ATTR_HREF;
84     }
85
86     /**
87      * Obtain the item type name of an array
88      */

89     public String JavaDoc getAttrItemType() {
90         return Constants.ATTR_ARRAY_TYPE;
91     }
92
93     /**
94      * Obtain the Qname of VersionMismatch fault code
95      */

96     public QName JavaDoc getVerMismatchFaultCodeQName() {
97         return Constants.FAULT_VERSIONMISMATCH;
98     }
99
100     /**
101      * Obtain the Qname of Mustunderstand fault code
102      */

103     public QName JavaDoc getMustunderstandFaultQName() {
104         return Constants.FAULT_MUSTUNDERSTAND;
105     }
106
107     /**
108      * Obtain the QName of the SOAP array type
109      */

110     public QName JavaDoc getArrayType() {
111         return Constants.SOAP_ARRAY;
112     }
113 }
114
Popular Tags