KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > Constants


1 /*
2  * Copyright 2001-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
17 package org.apache.axis;
18
19 import org.apache.axis.schema.SchemaVersion1999;
20 import org.apache.axis.schema.SchemaVersion2000;
21 import org.apache.axis.schema.SchemaVersion2001;
22 import org.apache.axis.soap.SOAPConstants;
23 import org.xml.sax.Attributes JavaDoc;
24
25 import javax.xml.namespace.QName JavaDoc;
26
27 public class Constants {
28     // Some common Constants that should be used in local handler options
29
// (Not all implementations will have these concepts - for example
30
// not all Engines will have notion of registries but defining these
31
// here should allow people to ask if they exist)
32
//////////////////////////////////////////////////////////////////////////
33

34     // Namespace Prefix Constants
35
//////////////////////////////////////////////////////////////////////////
36
public static final String JavaDoc NS_PREFIX_SOAP_ENV = "soapenv";
37     public static final String JavaDoc NS_PREFIX_SOAP_ENC = "soapenc";
38     public static final String JavaDoc NS_PREFIX_SCHEMA_XSI = "xsi" ;
39     public static final String JavaDoc NS_PREFIX_SCHEMA_XSD = "xsd" ;
40     public static final String JavaDoc NS_PREFIX_WSDL = "wsdl" ;
41     public static final String JavaDoc NS_PREFIX_WSDL_SOAP = "wsdlsoap";
42     public static final String JavaDoc NS_PREFIX_XMLSOAP = "apachesoap";
43     public static final String JavaDoc NS_PREFIX_XML = "xml";
44
45     // Axis Namespaces
46
public static final String JavaDoc NS_URI_AXIS = "http://xml.apache.org/axis/";
47     public static final String JavaDoc NS_URI_XMLSOAP = "http://xml.apache.org/xml-soap";
48
49     // Special namespace URI to indicate an "automatically" serialized Java
50
// type. This allows us to use types without needing explicit mappings,
51
// such that Java classes like "org.foo.Bar" map to QNames like
52
// {http://xml.apache.org/axis/java}org.foo.Bar
53
public static final String JavaDoc NS_URI_JAVA = "http://xml.apache.org/axis/java";
54
55     //
56
// Default SOAP version
57
//
58
public static final SOAPConstants DEFAULT_SOAP_VERSION =
59         SOAPConstants.SOAP11_CONSTANTS;
60
61     //
62
// SOAP-ENV Namespaces
63
//
64
public static final String JavaDoc URI_SOAP11_ENV =
65                                 "http://schemas.xmlsoap.org/soap/envelope/" ;
66     public static final String JavaDoc URI_SOAP12_ENV =
67                                    "http://www.w3.org/2003/05/soap-envelope";
68     public static final String JavaDoc URI_DEFAULT_SOAP_ENV =
69         DEFAULT_SOAP_VERSION.getEnvelopeURI();
70
71     // fixme: this is unsafe - a client can (accidentaly or on purpose)
72
// over-write the elemnts of this array. This pattern is used throughout
73
// this file.
74
public static final String JavaDoc[] URIS_SOAP_ENV = {
75         URI_SOAP11_ENV,
76         URI_SOAP12_ENV,
77     };
78
79     // Constant name of the enterprise-style logging category.
80
// The enterprise category is for stuff that an enterprise product might
81
// want to track, but in a simple environment (like the AXIS build) would
82
// be nothing more than a nuisance.
83
public static final String JavaDoc ENTERPRISE_LOG_CATEGORY = "org.apache.axis.enterprise";
84
85     /**
86      * time logged stuff.
87      */

88     public static final String JavaDoc TIME_LOG_CATEGORY = "org.apache.axis.TIME";
89
90     /**
91      * Servlet exceptions. Axis faults are logged at debug level here.
92      */

93     public static final String JavaDoc EXCEPTION_LOG_CATEGORY = "org.apache.axis.EXCEPTIONS";
94
95     /** The name of the field which accepts xsd:any content in Beans. */
96     public static final String JavaDoc ANYCONTENT = "_any";
97     /**
98      * The size of the buffer size for.
99      */

100     public static final int HTTP_TXR_BUFFER_SIZE = 8 * 1024;
101     
102     /** Basic Profile 1.1 compatibility flag */
103     public static final String JavaDoc WSIBP11_COMPAT_PROPERTY = "axis.ws-i.bp11.compatibility";
104
105     /**
106      * Returns true if the string is the SOAP_ENV Namespace.
107      *
108      * @param s the string representation of a URI
109      * @return <code>true</code> if s represents any of the supported soap
110      * envelope URI strings
111      */

112     public static boolean isSOAP_ENV(String JavaDoc s) {
113         for (int i=0; i<URIS_SOAP_ENV.length; i++) {
114             if (URIS_SOAP_ENV[i].equals(s)) {
115                 return true;
116             }
117         }
118         return false;
119     }
120
121
122     public static final String JavaDoc URI_LITERAL_ENC = "";
123
124     //
125
// SOAP-ENC Namespaces
126
//
127
public static final String JavaDoc URI_SOAP11_ENC =
128                                 "http://schemas.xmlsoap.org/soap/encoding/" ;
129     public static final String JavaDoc URI_SOAP12_ENC =
130                                    "http://www.w3.org/2003/05/soap-encoding";
131     public static final String JavaDoc URI_SOAP12_NOENC =
132                      "http://www.w3.org/2003/05/soap-envelope/encoding/none";
133     public static final String JavaDoc URI_DEFAULT_SOAP_ENC =
134         DEFAULT_SOAP_VERSION.getEncodingURI();
135
136     public static final String JavaDoc[] URIS_SOAP_ENC = {
137         URI_SOAP12_ENC,
138         URI_SOAP11_ENC,
139     };
140
141     /**
142      * Returns true if SOAP_ENC Namespace.
143      *
144      * @param s a string representing the URI to check
145      * @return true if <code>s</code> matches a SOAP ENCODING namespace URI,
146      * false otherwise
147      */

148     public static boolean isSOAP_ENC(String JavaDoc s) {
149         for (int i=0; i<URIS_SOAP_ENC.length; i++) {
150             if (URIS_SOAP_ENC[i].equals(s)) {
151                 return true;
152             }
153         }
154         return false;
155     }
156
157     /**
158      * This utility routine returns the value of an attribute which might
159      * be in one of several namespaces.
160      *
161      * @param attributes the attributes to search
162      * @param search an array of namespace URI strings to search
163      * @param localPart is the local part of the attribute name
164      * @return the value of the attribute or null
165      */

166     public static String JavaDoc getValue(Attributes JavaDoc attributes,
167                                   String JavaDoc [] search,
168                                   String JavaDoc localPart) {
169         if (attributes == null || search == null || localPart == null) {
170             return null;
171         }
172         
173         int len = attributes.getLength();
174         
175         if (len == 0) {
176             return null;
177         }
178         
179         for (int i=0; i < len; i++) {
180             if (attributes.getLocalName(i).equals(localPart)) {
181                 String JavaDoc uri = attributes.getURI(i);
182                 for (int j=0; j<search.length; j++) {
183                     if (search[j].equals(uri)) return attributes.getValue(i);
184                 }
185             }
186         }
187         
188         return null;
189     }
190
191     /**
192      * Search an attribute collection for a list of QNames, returning
193      * the value of the first one found, or null if none were found.
194      *
195      * @param attributes
196      * @param search
197      * @return the value of the attribute
198      */

199     public static String JavaDoc getValue(Attributes JavaDoc attributes,
200                                   QName JavaDoc [] search) {
201         if (attributes == null || search == null)
202             return null;
203
204         if (attributes.getLength() == 0) return null;
205
206         String JavaDoc value = null;
207         for (int i=0; (value == null) && (i < search.length); i++) {
208             value = attributes.getValue(search[i].getNamespaceURI(),
209                                         search[i].getLocalPart());
210         }
211
212         return value;
213     }
214
215     /**
216      * equals
217      * The first QName is the current version of the name. The second qname is compared
218      * with the first considering all namespace uri versions.
219      * @param first Currently supported QName
220      * @param second any qname
221      * @return true if the qnames represent the same qname (paster namespace uri versions considered
222      */

223     public static boolean equals(QName JavaDoc first, QName JavaDoc second) {
224         if (first == second) {
225             return true;
226         }
227         if (first==null || second==null) {
228             return false;
229         }
230         if (first.equals(second)) {
231             return true;
232         }
233         if (!first.getLocalPart().equals(second.getLocalPart())) {
234             return false;
235         }
236
237         String JavaDoc namespaceURI = first.getNamespaceURI();
238         String JavaDoc[] search = null;
239         if (namespaceURI.equals(URI_DEFAULT_SOAP_ENC))
240             search = URIS_SOAP_ENC;
241         else if (namespaceURI.equals(URI_DEFAULT_SOAP_ENV))
242             search = URIS_SOAP_ENV;
243         else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSD))
244             search = URIS_SCHEMA_XSD;
245         else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSI))
246             search = URIS_SCHEMA_XSI;
247         else
248             search = new String JavaDoc[] {namespaceURI};
249
250         for (int i=0; i < search.length; i++) {
251             if (search[i].equals(second.getNamespaceURI())) {
252                 return true;
253             }
254         }
255         return false;
256     }
257
258     // Misc SOAP Namespaces / URIs
259
public static final String JavaDoc URI_SOAP11_NEXT_ACTOR =
260                                      "http://schemas.xmlsoap.org/soap/actor/next" ;
261     public static final String JavaDoc URI_SOAP12_NEXT_ROLE =
262                                      "http://www.w3.org/2003/05/soap-envelope/role/next";
263     /** @deprecated use URI_SOAP12_NEXT_ROLE */
264     public static final String JavaDoc URI_SOAP12_NEXT_ACTOR = URI_SOAP12_NEXT_ROLE;
265
266     public static final String JavaDoc URI_SOAP12_RPC =
267                                      "http://www.w3.org/2003/05/soap-rpc";
268
269     public static final String JavaDoc URI_SOAP12_NONE_ROLE =
270                          "http://www.w3.org/2003/05/soap-envelope/role/none";
271     public static final String JavaDoc URI_SOAP12_ULTIMATE_ROLE =
272              "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver";
273
274     public static final String JavaDoc URI_SOAP11_HTTP =
275                                      "http://schemas.xmlsoap.org/soap/http";
276     public static final String JavaDoc URI_SOAP12_HTTP =
277                                     "http://www.w3.org/2003/05/http";
278
279     public static final String JavaDoc NS_URI_XMLNS =
280                                        "http://www.w3.org/2000/xmlns/";
281
282     public static final String JavaDoc NS_URI_XML =
283                                        "http://www.w3.org/XML/1998/namespace";
284
285     //
286
// Schema XSD Namespaces
287
//
288
public static final String JavaDoc URI_1999_SCHEMA_XSD =
289                                           "http://www.w3.org/1999/XMLSchema";
290     public static final String JavaDoc URI_2000_SCHEMA_XSD =
291                                        "http://www.w3.org/2000/10/XMLSchema";
292     public static final String JavaDoc URI_2001_SCHEMA_XSD =
293                                           "http://www.w3.org/2001/XMLSchema";
294
295     public static final String JavaDoc URI_DEFAULT_SCHEMA_XSD = URI_2001_SCHEMA_XSD;
296
297     public static final String JavaDoc[] URIS_SCHEMA_XSD = {
298         URI_1999_SCHEMA_XSD,
299         URI_2000_SCHEMA_XSD,
300         URI_2001_SCHEMA_XSD
301     };
302     public static final QName JavaDoc [] QNAMES_NIL = {
303         SchemaVersion2001.QNAME_NIL,
304         SchemaVersion2000.QNAME_NIL,
305         SchemaVersion1999.QNAME_NIL
306     };
307
308     /**
309      * Returns true if SchemaXSD Namespace.
310      *
311      * @param s the string representing the URI to check
312      * @return true if s represents the Schema XSD namespace, false otherwise
313      */

314     public static boolean isSchemaXSD(String JavaDoc s) {
315         for (int i=0; i<URIS_SCHEMA_XSD.length; i++) {
316             if (URIS_SCHEMA_XSD[i].equals(s)) {
317                 return true;
318             }
319         }
320         return false;
321     }
322
323     //
324
// Schema XSI Namespaces
325
//
326
public static final String JavaDoc URI_1999_SCHEMA_XSI =
327                                  "http://www.w3.org/1999/XMLSchema-instance";
328     public static final String JavaDoc URI_2000_SCHEMA_XSI =
329                               "http://www.w3.org/2000/10/XMLSchema-instance";
330     public static final String JavaDoc URI_2001_SCHEMA_XSI =
331                                  "http://www.w3.org/2001/XMLSchema-instance";
332     public static final String JavaDoc URI_DEFAULT_SCHEMA_XSI = URI_2001_SCHEMA_XSI;
333
334     public static final String JavaDoc[] URIS_SCHEMA_XSI = {
335         URI_1999_SCHEMA_XSI,
336         URI_2000_SCHEMA_XSI,
337         URI_2001_SCHEMA_XSI,
338     };
339
340     /**
341      * Returns true if SchemaXSI Namespace.
342      *
343      * @param s the string of the URI to check
344      * @return true if <code>s</code> is a Schema XSI URI, false otherwise
345      */

346     public static boolean isSchemaXSI(String JavaDoc s) {
347         for (int i=0; i<URIS_SCHEMA_XSI.length; i++) {
348             if (URIS_SCHEMA_XSI[i].equals(s)) {
349                 return true;
350             }
351         }
352         return false;
353     }
354
355     /**
356      * WSDL Namespace.
357      */

358     public static final String JavaDoc NS_URI_WSDL11 =
359                                  "http://schemas.xmlsoap.org/wsdl/";
360
361     public static final String JavaDoc[] NS_URIS_WSDL = {
362         NS_URI_WSDL11,
363     };
364
365     /**
366      * Returns true if this is a WSDL Namespace.
367      *
368      * @param s a string of a URI to check
369      * @return true if <code>s</code> is a WSDL namespace URI, false otherwise
370      */

371     public static boolean isWSDL(String JavaDoc s) {
372         for (int i=0; i<NS_URIS_WSDL.length; i++) {
373             if (NS_URIS_WSDL[i].equals(s)) {
374                 return true;
375             }
376         }
377         return false;
378     }
379
380     //
381
// WSDL extensions for SOAP in DIME
382
// (http://gotdotnet.com/team/xml_wsspecs/dime/WSDL-Extension-for-DIME.htm)
383
//
384
public static final String JavaDoc URI_DIME_WSDL =
385                                  "http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
386
387     public static final String JavaDoc URI_DIME_CONTENT =
388                                  "http://schemas.xmlsoap.org/ws/2002/04/content-type/";
389
390     public static final String JavaDoc URI_DIME_REFERENCE=
391                                  "http://schemas.xmlsoap.org/ws/2002/04/reference/";
392
393     public static final String JavaDoc URI_DIME_CLOSED_LAYOUT=
394                                  "http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout";
395
396     public static final String JavaDoc URI_DIME_OPEN_LAYOUT=
397                                  "http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout";
398
399     //
400
// WSDL SOAP Namespace
401
//
402
public static final String JavaDoc URI_WSDL11_SOAP =
403                                  "http://schemas.xmlsoap.org/wsdl/soap/";
404     public static final String JavaDoc URI_WSDL12_SOAP =
405                                  "http://schemas.xmlsoap.org/wsdl/soap12/";
406
407     public static final String JavaDoc[] NS_URIS_WSDL_SOAP = {
408         URI_WSDL11_SOAP,
409         URI_WSDL12_SOAP
410     };
411
412     /**
413      * Returns true if s is a WSDL SOAP Namespace.
414      *
415      * @param s a string of a URI to check
416      * @return true if <code>s</code> matches any of the WSDL SOAP namepace
417      * URIs, false otherwise
418      */

419     public static boolean isWSDLSOAP(String JavaDoc s) {
420         for (int i=0; i<NS_URIS_WSDL_SOAP.length; i++) {
421             if (NS_URIS_WSDL_SOAP[i].equals(s)) {
422                 return true;
423             }
424         }
425         return false;
426     }
427
428     // Axis Mechanism Type
429
public static final String JavaDoc AXIS_SAX = "Axis SAX Mechanism";
430
431     public static final String JavaDoc ELEM_ENVELOPE = "Envelope" ;
432     public static final String JavaDoc ELEM_HEADER = "Header" ;
433     public static final String JavaDoc ELEM_BODY = "Body" ;
434     public static final String JavaDoc ELEM_FAULT = "Fault" ;
435
436     public static final String JavaDoc ELEM_NOTUNDERSTOOD = "NotUnderstood";
437     public static final String JavaDoc ELEM_UPGRADE = "Upgrade";
438     public static final String JavaDoc ELEM_SUPPORTEDENVELOPE = "SupportedEnvelope";
439
440     public static final String JavaDoc ELEM_FAULT_CODE = "faultcode" ;
441     public static final String JavaDoc ELEM_FAULT_STRING = "faultstring" ;
442     public static final String JavaDoc ELEM_FAULT_DETAIL = "detail" ;
443     public static final String JavaDoc ELEM_FAULT_ACTOR = "faultactor" ;
444
445     public static final String JavaDoc ELEM_FAULT_CODE_SOAP12 = "Code" ;
446     public static final String JavaDoc ELEM_FAULT_VALUE_SOAP12 = "Value" ;
447     public static final String JavaDoc ELEM_FAULT_SUBCODE_SOAP12 = "Subcode" ;
448     public static final String JavaDoc ELEM_FAULT_REASON_SOAP12 = "Reason" ;
449     public static final String JavaDoc ELEM_FAULT_NODE_SOAP12 = "Node" ;
450     public static final String JavaDoc ELEM_FAULT_ROLE_SOAP12 = "Role" ;
451     public static final String JavaDoc ELEM_FAULT_DETAIL_SOAP12 = "Detail" ;
452     public static final String JavaDoc ELEM_TEXT_SOAP12 = "Text" ;
453
454     public static final String JavaDoc ATTR_MUST_UNDERSTAND = "mustUnderstand" ;
455     public static final String JavaDoc ATTR_ENCODING_STYLE = "encodingStyle" ;
456     public static final String JavaDoc ATTR_ACTOR = "actor" ;
457     public static final String JavaDoc ATTR_ROLE = "role" ;
458     public static final String JavaDoc ATTR_RELAY = "relay" ;
459     public static final String JavaDoc ATTR_ROOT = "root" ;
460     public static final String JavaDoc ATTR_ID = "id" ;
461     public static final String JavaDoc ATTR_HREF = "href" ;
462     public static final String JavaDoc ATTR_REF = "ref" ;
463     public static final String JavaDoc ATTR_QNAME = "qname";
464     public static final String JavaDoc ATTR_ARRAY_TYPE = "arrayType";
465     public static final String JavaDoc ATTR_ITEM_TYPE = "itemType";
466     public static final String JavaDoc ATTR_ARRAY_SIZE = "arraySize";
467     public static final String JavaDoc ATTR_OFFSET = "offset";
468     public static final String JavaDoc ATTR_POSITION = "position";
469     public static final String JavaDoc ATTR_TYPE = "type";
470     public static final String JavaDoc ATTR_HANDLERINFOCHAIN = "handlerInfoChain";
471
472     // Fault Codes
473
//////////////////////////////////////////////////////////////////////////
474
public static final String JavaDoc FAULT_CLIENT = "Client";
475
476     public static final String JavaDoc FAULT_SERVER_GENERAL =
477                                                    "Server.generalException";
478
479     public static final String JavaDoc FAULT_SERVER_USER =
480                                                    "Server.userException";
481
482     public static final QName JavaDoc FAULT_VERSIONMISMATCH =
483                                   new QName JavaDoc(URI_SOAP11_ENV, "VersionMismatch");
484
485     public static final QName JavaDoc FAULT_MUSTUNDERSTAND =
486                                   new QName JavaDoc(URI_SOAP11_ENV, "MustUnderstand");
487
488
489     public static final QName JavaDoc FAULT_SOAP12_MUSTUNDERSTAND =
490                                   new QName JavaDoc(URI_SOAP12_ENV, "MustUnderstand");
491
492     public static final QName JavaDoc FAULT_SOAP12_VERSIONMISMATCH =
493                                   new QName JavaDoc(URI_SOAP12_ENV, "VersionMismatch");
494
495     public static final QName JavaDoc FAULT_SOAP12_DATAENCODINGUNKNOWN =
496                                   new QName JavaDoc(URI_SOAP12_ENV, "DataEncodingUnknown");
497
498     public static final QName JavaDoc FAULT_SOAP12_SENDER =
499                                   new QName JavaDoc(URI_SOAP12_ENV, "Sender");
500
501     public static final QName JavaDoc FAULT_SOAP12_RECEIVER =
502                                   new QName JavaDoc(URI_SOAP12_ENV, "Receiver");
503
504     // SOAP 1.2 Fault subcodes
505
public static final QName JavaDoc FAULT_SUBCODE_BADARGS =
506             new QName JavaDoc(URI_SOAP12_RPC, "BadArguments");
507     public static final QName JavaDoc FAULT_SUBCODE_PROC_NOT_PRESENT =
508             new QName JavaDoc(URI_SOAP12_RPC, "ProcedureNotPresent");
509
510     // QNames
511
//////////////////////////////////////////////////////////////////////////
512
public static final QName JavaDoc QNAME_FAULTCODE =
513                                          new QName JavaDoc("", ELEM_FAULT_CODE);
514     public static final QName JavaDoc QNAME_FAULTSTRING =
515                                        new QName JavaDoc("", ELEM_FAULT_STRING);
516     public static final QName JavaDoc QNAME_FAULTACTOR =
517                                         new QName JavaDoc("", ELEM_FAULT_ACTOR);
518     public static final QName JavaDoc QNAME_FAULTDETAILS =
519                                          new QName JavaDoc("", ELEM_FAULT_DETAIL);
520
521     public static final QName JavaDoc QNAME_FAULTCODE_SOAP12 =
522                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_CODE_SOAP12);
523     public static final QName JavaDoc QNAME_FAULTVALUE_SOAP12 =
524                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_VALUE_SOAP12);
525     public static final QName JavaDoc QNAME_FAULTSUBCODE_SOAP12 =
526                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_SUBCODE_SOAP12);
527     public static final QName JavaDoc QNAME_FAULTREASON_SOAP12 =
528                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_REASON_SOAP12);
529     public static final QName JavaDoc QNAME_TEXT_SOAP12 =
530                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_TEXT_SOAP12);
531
532     public static final QName JavaDoc QNAME_FAULTNODE_SOAP12 =
533                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_NODE_SOAP12);
534     public static final QName JavaDoc QNAME_FAULTROLE_SOAP12 =
535                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_ROLE_SOAP12);
536     public static final QName JavaDoc QNAME_FAULTDETAIL_SOAP12 =
537                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_FAULT_DETAIL_SOAP12);
538     public static final QName JavaDoc QNAME_NOTUNDERSTOOD =
539                                          new QName JavaDoc(URI_SOAP12_ENV, ELEM_NOTUNDERSTOOD);
540
541     // Define qnames for the all of the XSD and SOAP-ENC encodings
542
public static final QName JavaDoc XSD_STRING = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "string");
543     public static final QName JavaDoc XSD_BOOLEAN = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "boolean");
544     public static final QName JavaDoc XSD_DOUBLE = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "double");
545     public static final QName JavaDoc XSD_FLOAT = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "float");
546     public static final QName JavaDoc XSD_INT = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "int");
547     public static final QName JavaDoc XSD_INTEGER = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "integer");
548     public static final QName JavaDoc XSD_LONG = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "long");
549     public static final QName JavaDoc XSD_SHORT = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "short");
550     public static final QName JavaDoc XSD_BYTE = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "byte");
551     public static final QName JavaDoc XSD_DECIMAL = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "decimal");
552     public static final QName JavaDoc XSD_BASE64 = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "base64Binary");
553     public static final QName JavaDoc XSD_HEXBIN = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "hexBinary");
554     public static final QName JavaDoc XSD_ANYSIMPLETYPE = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "anySimpleType");
555     public static final QName JavaDoc XSD_ANYTYPE = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "anyType");
556     public static final QName JavaDoc XSD_ANY = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "any");
557     public static final QName JavaDoc XSD_QNAME = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "QName");
558     public static final QName JavaDoc XSD_DATETIME = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "dateTime");
559     public static final QName JavaDoc XSD_DATE = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "date");
560     public static final QName JavaDoc XSD_TIME = new QName JavaDoc(URI_DEFAULT_SCHEMA_XSD, "time");
561     public static final QName JavaDoc XSD_TIMEINSTANT1999 = new QName JavaDoc(URI_1999_SCHEMA_XSD, "timeInstant");
562     public static final QName JavaDoc XSD_TIMEINSTANT2000 = new QName JavaDoc(URI_2000_SCHEMA_XSD, "timeInstant");
563
564     public static final QName JavaDoc XSD_NORMALIZEDSTRING = new QName JavaDoc(URI_2001_SCHEMA_XSD, "normalizedString");
565     public static final QName JavaDoc XSD_TOKEN = new QName JavaDoc(URI_2001_SCHEMA_XSD, "token");
566
567     public static final QName JavaDoc XSD_UNSIGNEDLONG = new QName JavaDoc(URI_2001_SCHEMA_XSD, "unsignedLong");
568     public static final QName JavaDoc XSD_UNSIGNEDINT = new QName JavaDoc(URI_2001_SCHEMA_XSD, "unsignedInt");
569     public static final QName JavaDoc XSD_UNSIGNEDSHORT = new QName JavaDoc(URI_2001_SCHEMA_XSD, "unsignedShort");
570     public static final QName JavaDoc XSD_UNSIGNEDBYTE = new QName JavaDoc(URI_2001_SCHEMA_XSD, "unsignedByte");
571     public static final QName JavaDoc XSD_POSITIVEINTEGER = new QName JavaDoc(URI_2001_SCHEMA_XSD, "positiveInteger");
572     public static final QName JavaDoc XSD_NEGATIVEINTEGER = new QName JavaDoc(URI_2001_SCHEMA_XSD, "negativeInteger");
573     public static final QName JavaDoc XSD_NONNEGATIVEINTEGER = new QName JavaDoc(URI_2001_SCHEMA_XSD, "nonNegativeInteger");
574     public static final QName JavaDoc XSD_NONPOSITIVEINTEGER = new QName JavaDoc(URI_2001_SCHEMA_XSD, "nonPositiveInteger");
575
576     public static final QName JavaDoc XSD_YEARMONTH = new QName JavaDoc(URI_2001_SCHEMA_XSD, "gYearMonth");
577     public static final QName JavaDoc XSD_MONTHDAY = new QName JavaDoc(URI_2001_SCHEMA_XSD, "gMonthDay");
578     public static final QName JavaDoc XSD_YEAR = new QName JavaDoc(URI_2001_SCHEMA_XSD, "gYear");
579     public static final QName JavaDoc XSD_MONTH = new QName JavaDoc(URI_2001_SCHEMA_XSD, "gMonth");
580     public static final QName JavaDoc XSD_DAY = new QName JavaDoc(URI_2001_SCHEMA_XSD, "gDay");
581     public static final QName JavaDoc XSD_DURATION = new QName JavaDoc(URI_2001_SCHEMA_XSD, "duration");
582
583     public static final QName JavaDoc XSD_NAME = new QName JavaDoc(URI_2001_SCHEMA_XSD, "Name");
584     public static final QName JavaDoc XSD_NCNAME = new QName JavaDoc(URI_2001_SCHEMA_XSD, "NCName");
585     public static final QName JavaDoc XSD_NMTOKEN = new QName JavaDoc(URI_2001_SCHEMA_XSD, "NMTOKEN");
586     public static final QName JavaDoc XSD_NMTOKENS = new QName JavaDoc(URI_2001_SCHEMA_XSD, "NMTOKENS");
587     public static final QName JavaDoc XSD_NOTATION = new QName JavaDoc(URI_2001_SCHEMA_XSD, "NOTATION");
588     public static final QName JavaDoc XSD_ENTITY = new QName JavaDoc(URI_2001_SCHEMA_XSD, "ENTITY");
589     public static final QName JavaDoc XSD_ENTITIES = new QName JavaDoc(URI_2001_SCHEMA_XSD, "ENTITIES");
590     public static final QName JavaDoc XSD_IDREF = new QName JavaDoc(URI_2001_SCHEMA_XSD, "IDREF");
591     public static final QName JavaDoc XSD_IDREFS = new QName JavaDoc(URI_2001_SCHEMA_XSD, "IDREFS");
592     public static final QName JavaDoc XSD_ANYURI = new QName JavaDoc(URI_2001_SCHEMA_XSD, "anyURI");
593     public static final QName JavaDoc XSD_LANGUAGE = new QName JavaDoc(URI_2001_SCHEMA_XSD, "language");
594     public static final QName JavaDoc XSD_ID = new QName JavaDoc(URI_2001_SCHEMA_XSD, "ID");
595     public static final QName JavaDoc XSD_SCHEMA = new QName JavaDoc(URI_2001_SCHEMA_XSD, "schema");
596
597     public static final QName JavaDoc XML_LANG = new QName JavaDoc(NS_URI_XML, "lang");
598
599     public static final QName JavaDoc SOAP_BASE64 = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "base64");
600     public static final QName JavaDoc SOAP_BASE64BINARY = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "base64Binary");
601     public static final QName JavaDoc SOAP_STRING = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "string");
602     public static final QName JavaDoc SOAP_BOOLEAN = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "boolean");
603     public static final QName JavaDoc SOAP_DOUBLE = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "double");
604     public static final QName JavaDoc SOAP_FLOAT = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "float");
605     public static final QName JavaDoc SOAP_INT = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "int");
606     public static final QName JavaDoc SOAP_LONG = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "long");
607     public static final QName JavaDoc SOAP_SHORT = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "short");
608     public static final QName JavaDoc SOAP_BYTE = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "byte");
609     public static final QName JavaDoc SOAP_INTEGER = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "integer");
610     public static final QName JavaDoc SOAP_DECIMAL = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "decimal");
611     public static final QName JavaDoc SOAP_ARRAY = new QName JavaDoc(URI_DEFAULT_SOAP_ENC, "Array");
612     public static final QName JavaDoc SOAP_COMMON_ATTRS11 = new QName JavaDoc(URI_SOAP11_ENC, "commonAttributes");
613     public static final QName JavaDoc SOAP_COMMON_ATTRS12 = new QName JavaDoc(URI_SOAP12_ENC, "commonAttributes");
614     public static final QName JavaDoc SOAP_ARRAY_ATTRS11 = new QName JavaDoc(URI_SOAP11_ENC, "arrayAttributes");
615     public static final QName JavaDoc SOAP_ARRAY_ATTRS12 = new QName JavaDoc(URI_SOAP12_ENC, "arrayAttributes");
616     public static final QName JavaDoc SOAP_ARRAY12 = new QName JavaDoc(URI_SOAP12_ENC, "Array");
617
618     public static final QName JavaDoc SOAP_MAP = new QName JavaDoc(NS_URI_XMLSOAP, "Map");
619     public static final QName JavaDoc SOAP_ELEMENT = new QName JavaDoc(NS_URI_XMLSOAP, "Element");
620     public static final QName JavaDoc SOAP_DOCUMENT = new QName JavaDoc(NS_URI_XMLSOAP, "Document");
621     public static final QName JavaDoc SOAP_VECTOR = new QName JavaDoc(NS_URI_XMLSOAP, "Vector");
622     public static final QName JavaDoc MIME_IMAGE = new QName JavaDoc(NS_URI_XMLSOAP, "Image");
623     public static final QName JavaDoc MIME_PLAINTEXT = new QName JavaDoc(NS_URI_XMLSOAP, "PlainText");
624     public static final QName JavaDoc MIME_MULTIPART = new QName JavaDoc(NS_URI_XMLSOAP, "Multipart");
625     public static final QName JavaDoc MIME_SOURCE = new QName JavaDoc(NS_URI_XMLSOAP, "Source");
626     public static final QName JavaDoc MIME_OCTETSTREAM = new QName JavaDoc(NS_URI_XMLSOAP, "octet-stream");
627     public static final QName JavaDoc MIME_DATA_HANDLER = new QName JavaDoc(NS_URI_XMLSOAP, "DataHandler");
628
629
630     public static final QName JavaDoc QNAME_LITERAL_ITEM = new QName JavaDoc(URI_LITERAL_ENC,"item");
631     public static final QName JavaDoc QNAME_RPC_RESULT = new QName JavaDoc(URI_SOAP12_RPC,"result");
632
633     /**
634      * QName of stack trace element in an axis fault detail.
635      */

636     public static final QName JavaDoc QNAME_FAULTDETAIL_STACKTRACE = new QName JavaDoc(NS_URI_AXIS,"stackTrace");
637
638     /**
639      * QName of exception Name element in an axis fault detail.
640      * Do not use - this is for pre-1.0 server->client exceptions.
641      */

642     public static final QName JavaDoc QNAME_FAULTDETAIL_EXCEPTIONNAME = new QName JavaDoc(NS_URI_AXIS, "exceptionName");
643
644     /**
645      * Flag set if this was a runtime exception, rather than something thrown by the class at the end of the
646      * chain. Axis' logging treats runtime exceptions more seriously.
647      */

648     public static final QName JavaDoc QNAME_FAULTDETAIL_RUNTIMEEXCEPTION = new QName JavaDoc(NS_URI_AXIS, "isRuntimeException");
649
650     /**
651      * QName of stack trace element in an axis fault detail.
652      */

653     public static final QName JavaDoc QNAME_FAULTDETAIL_HTTPERRORCODE = new QName JavaDoc(NS_URI_AXIS, "HttpErrorCode");
654
655     /**
656      * QName of a nested fault in an axis fault detail.
657      */

658     public static final QName JavaDoc QNAME_FAULTDETAIL_NESTEDFAULT = new QName JavaDoc(NS_URI_AXIS, "nestedFault");
659
660     /**
661      * QName of a hostname in an axis fault detail.
662      */

663     public static final QName JavaDoc QNAME_FAULTDETAIL_HOSTNAME = new QName JavaDoc(NS_URI_AXIS, "hostname");
664
665     //QNames of well known faults
666
/**
667      * The no-service fault value.
668      */

669     public static final QName JavaDoc QNAME_NO_SERVICE_FAULT_CODE
670             = new QName JavaDoc(NS_URI_AXIS, "Server.NoService");
671
672     // Misc Strings
673
//////////////////////////////////////////////////////////////////////////
674

675     // Where to put those pesky JWS classes
676
public static final String JavaDoc MC_JWS_CLASSDIR = "jws.classDir" ;
677     // Where we're rooted
678
public static final String JavaDoc MC_HOME_DIR = "home.dir";
679
680     // Relative path of the request URL (ie. http://.../axis/a.jws = /a.jws
681
public static final String JavaDoc MC_RELATIVE_PATH = "path";
682
683     // MessageContext param for the engine's path
684
public static final String JavaDoc MC_REALPATH = "realpath";
685     // MessageContext param for the location of config files
686
public static final String JavaDoc MC_CONFIGPATH = "configPath";
687     // MessageContext param for the IP of the calling client
688
public static final String JavaDoc MC_REMOTE_ADDR = "remoteaddr";
689     // When invoked from a servlet, per JAX-RPC, we need a
690
// ServletEndpointContext object. This is where it lives.
691
public static final String JavaDoc MC_SERVLET_ENDPOINT_CONTEXT = "servletEndpointContext";
692
693     // If we're SOAP 1.2, the default behavior in org.apache.axis.message.BodyBuilder
694
// is to throw a ProcedureNotPresent fault if we can't dispatch to an
695
// OperationDesc during deserialization. Set this property to any non-null
696
// value to prevent this behavior (only used by test.soap12.
697
public static final String JavaDoc MC_NO_OPERATION_OK = "NoOperationOK";
698
699     // This property indicates we're supporting only a single SOAP version.
700
// If set (by the service or engine), we'll only accept envelopes of the
701
// specified version. Value should be an org.apache.axis.soap.SOAPConstants
702
public static final String JavaDoc MC_SINGLE_SOAP_VERSION = "SingleSOAPVersion";
703
704     /**
705      * What the extension of JWS files is. If changing this, note that
706      * AxisServlet has an xdoclet declaration in the class javadocs that
707      * also needs updating.
708      */

709     public static final String JavaDoc JWS_DEFAULT_FILE_EXTENSION = ".jws";
710
711     /**
712      * The default timeout for messages.
713      *
714      * @since Axis1.2
715      */

716     public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;
717
718     /**
719      * MIME Content Types
720      *
721      * @since Axis1.2
722      */

723     public static final String JavaDoc MIME_CT_APPLICATION_OCTETSTREAM = "application/octet-stream";
724     public static final String JavaDoc MIME_CT_TEXT_PLAIN = "text/plain";
725     public static final String JavaDoc MIME_CT_IMAGE_JPEG = "image/jpeg";
726     public static final String JavaDoc MIME_CT_IMAGE_GIF = "image/gif";
727     public static final String JavaDoc MIME_CT_TEXT_XML = "text/xml";
728     public static final String JavaDoc MIME_CT_APPLICATION_XML = "application/xml";
729     public static final String JavaDoc MIME_CT_MULTIPART_PREFIX = "multipart/";
730 }
731
Popular Tags