KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.io.Serializable JavaDoc;
20
21 /**
22  * An interface definining SOAP constants. This allows various parts of the
23  * engine to avoid hardcoding dependence on a particular SOAP version and its
24  * associated URIs, etc.
25  *
26  * This might be fleshed out later to encapsulate factories for behavioral
27  * objects which act differently depending on the SOAP version, but for now
28  * it just supplies common namespaces + QNames.
29  *
30  * @author Glen Daniels (gdaniels@apache.org)
31  * @author Andras Avar (andras.avar@nokia.com)
32  */

33 public interface SOAPConstants extends Serializable JavaDoc {
34     /** SOAP 1.1 constants - thread-safe and shared */
35     public SOAP11Constants SOAP11_CONSTANTS = new SOAP11Constants();
36     /** SOAP 1.2 constants - thread-safe and shared */
37     public SOAP12Constants SOAP12_CONSTANTS = new SOAP12Constants();
38
39     /**
40      * Obtain the envelope namespace for this version of SOAP
41      */

42     public String JavaDoc getEnvelopeURI();
43
44     /**
45      * Obtain the encoding namespace for this version of SOAP
46      */

47     public String JavaDoc getEncodingURI();
48
49     /**
50      * Obtain the QName for the Fault element
51      */

52     public QName JavaDoc getFaultQName();
53
54     /**
55      * Obtain the QName for the Header element
56      */

57     public QName JavaDoc getHeaderQName();
58
59     /**
60      * Obtain the QName for the Body element
61      */

62     public QName JavaDoc getBodyQName();
63
64     /**
65      * Obtain the QName for the role attribute (actor/role)
66      */

67     public QName JavaDoc getRoleAttributeQName();
68
69     /**
70      * Obtain the MIME content type
71      */

72     public String JavaDoc getContentType();
73     
74     /**
75      * Obtain the "next" role/actor URI
76      */

77     public String JavaDoc getNextRoleURI();
78
79     /**
80      * Obtain the href attribute name
81      */

82     public String JavaDoc getAttrHref();
83
84     /**
85      * Obtain the item type name of an array
86      */

87     public String JavaDoc getAttrItemType();
88
89     /**
90      * Obtain the Qname of VersionMismatch fault code
91      */

92     public QName JavaDoc getVerMismatchFaultCodeQName();
93
94     /**
95      * Obtain the Qname of Mustunderstand fault code
96      */

97     public QName JavaDoc getMustunderstandFaultQName();
98
99     /**
100      * Obtain the QName of the SOAP array type
101      */

102     QName JavaDoc getArrayType();
103 }
104
Popular Tags