KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "Axis" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation. For more
52  * information on the Apache Software Foundation, please see
53  * <http://www.apache.org/>.
54  */

55
56 package org.jboss.axis;
57
58 import org.jboss.axis.schema.SchemaVersion1999;
59 import org.jboss.axis.schema.SchemaVersion2000;
60 import org.jboss.axis.schema.SchemaVersion2001;
61 import org.jboss.axis.soap.SOAPConstants;
62 import org.xml.sax.Attributes JavaDoc;
63
64 import javax.xml.namespace.QName JavaDoc;
65
66 public class Constants
67 {
68    // Some common Constants that should be used in local handler options
69
// (Not all implementations will have these concepts - for example
70
// not all Engines will have notion of registries but defining these
71
// here should allow people to ask if they exist)
72
//////////////////////////////////////////////////////////////////////////
73

74    // Namespace Prefix Constants
75
//////////////////////////////////////////////////////////////////////////
76
public static final String JavaDoc NS_PREFIX_SOAP_ENV = "soapenv";
77    public static final String JavaDoc NS_PREFIX_SOAP_ENC = "soapenc";
78    public static final String JavaDoc NS_PREFIX_SCHEMA_XSI = "xsi";
79    public static final String JavaDoc NS_PREFIX_SCHEMA_XSD = "xsd";
80    public static final String JavaDoc NS_PREFIX_WSDL = "wsdl";
81    public static final String JavaDoc NS_PREFIX_WSDL_SOAP = "wsdlsoap";
82    public static final String JavaDoc NS_PREFIX_XMLSOAP = "apachesoap";
83    public static final String JavaDoc NS_PREFIX_XML = "xml";
84
85    // Axis Namespaces
86
public static final String JavaDoc NS_URI_AXIS = "http://xml.apache.org/axis/";
87    public static final String JavaDoc NS_URI_XMLSOAP = "http://xml.apache.org/xml-soap";
88
89    // Special namespace URI to indicate an "automatically" serialized Java
90
// type. This allows us to use types without needing explicit mappings,
91
// such that Java classes like "org.foo.Bar" map to QNames like
92
// {http://xml.apache.org/axis/java}org.foo.Bar
93
public static final String JavaDoc NS_URI_JAVA = "http://xml.apache.org/axis/java";
94
95    //
96
// Default SOAP version
97
//
98
public static final SOAPConstants DEFAULT_SOAP_VERSION =
99            SOAPConstants.SOAP11_CONSTANTS;
100
101    //
102
// SOAP-ENV Namespaces
103
//
104
public static final String JavaDoc URI_SOAP11_ENV =
105            "http://schemas.xmlsoap.org/soap/envelope/";
106    public static final String JavaDoc URI_SOAP12_ENV =
107            "http://www.w3.org/2002/12/soap-envelope";
108    public static final String JavaDoc URI_DEFAULT_SOAP_ENV =
109            DEFAULT_SOAP_VERSION.getEnvelopeURI();
110
111    public static final String JavaDoc[] URIS_SOAP_ENV = {
112       URI_SOAP11_ENV,
113       URI_SOAP12_ENV,
114    };
115
116    /**
117     * time logged stuff
118     */

119    public static final String JavaDoc TIME_LOG_CATEGORY = "org.jboss.axis.TIME";
120
121    /**
122     * servlet exceptions. Axis faults are logged at debug level here.
123     */

124    public static final String JavaDoc EXCEPTION_LOG_CATEGORY = "org.jboss.axis.EXCEPTIONS";
125
126    /**
127     * The name of the field which accepts xsd:any content in Beans
128     */

129    public static final String JavaDoc ANYCONTENT = "_any";
130
131    /**
132     * Returns true if SOAP_ENV Namespace
133     */

134    public static boolean isSOAP_ENV(String JavaDoc s)
135    {
136       for (int i = 0; i < URIS_SOAP_ENV.length; i++)
137       {
138          if (URIS_SOAP_ENV[i].equals(s))
139          {
140             return true;
141          }
142       }
143       return false;
144    }
145
146
147    public static final String JavaDoc URI_LITERAL_ENC = "";
148
149    //
150
// SOAP-ENC Namespaces
151
//
152
public static final String JavaDoc URI_SOAP11_ENC =
153            "http://schemas.xmlsoap.org/soap/encoding/";
154    public static final String JavaDoc URI_SOAP12_ENC =
155            "http://www.w3.org/2002/12/soap-encoding";
156    public static final String JavaDoc URI_SOAP12_NOENC =
157            "http://www.w3.org/2002/12/soap-envelope/encoding/none";
158    public static final String JavaDoc URI_DEFAULT_SOAP_ENC =
159            DEFAULT_SOAP_VERSION.getEncodingURI();
160
161    public static final String JavaDoc[] URIS_SOAP_ENC = {
162       URI_SOAP11_ENC,
163       URI_SOAP12_ENC,
164    };
165
166    /**
167     * Returns true if SOAP_ENC Namespace
168     */

169    public static boolean isSOAP_ENC(String JavaDoc s)
170    {
171       for (int i = 0; i < URIS_SOAP_ENC.length; i++)
172       {
173          if (URIS_SOAP_ENC[i].equals(s))
174          {
175             return true;
176          }
177       }
178       return false;
179    }
180
181    /**
182     * This utility routine returns the value of an attribute which might
183     * be in one of several namespaces.
184     *
185     * @param attributes the attributes to search
186     * @param search an array of namespace URI strings to search
187     * @param localPart is the local part of the attribute name
188     * @return the value of the attribute or null
189     */

190    public static String JavaDoc getValue(Attributes JavaDoc attributes,
191                                  String JavaDoc[] search,
192                                  String JavaDoc localPart)
193    {
194       if (attributes == null || attributes.getLength() == 0 || search == null || localPart == null)
195          return null;
196
197       int len = attributes.getLength();
198
199       for (int i = 0; i < len; i++)
200       {
201          if (attributes.getLocalName(i).equals(localPart))
202          {
203             String JavaDoc uri = attributes.getURI(i);
204             for (int j = 0; j < search.length; j++)
205             {
206                if (search[j].equals(uri)) return attributes.getValue(i);
207             }
208          }
209       }
210
211       return null;
212    }
213
214    /**
215     * Search an attribute collection for a list of QNames, returning
216     * the value of the first one found, or null if none were found.
217     *
218     * @param attributes
219     * @param search
220     * @return the value of the attribute
221     */

222    public static String JavaDoc getValue(Attributes JavaDoc attributes,
223                                  QName JavaDoc[] search)
224    {
225       if (attributes == null || search == null)
226          return null;
227
228       if (attributes.getLength() == 0) return null;
229
230       String JavaDoc value = null;
231       for (int i = 0; (value == null) && (i < search.length); i++)
232       {
233          value = attributes.getValue(search[i].getNamespaceURI(),
234                  search[i].getLocalPart());
235       }
236
237       return value;
238    }
239
240    /**
241     * equals
242     * The first QName is the current version of the name. The second qname is compared
243     * with the first considering all namespace uri versions.
244     *
245     * @param first Currently supported QName
246     * @param second any qname
247     * @return true if the qnames represent the same qname (paster namespace uri versions considered
248     */

249    public static boolean equals(QName JavaDoc first, QName JavaDoc second)
250    {
251       if (first == second)
252       {
253          return true;
254       }
255       if (first == null || second == null)
256       {
257          return false;
258       }
259       if (first.equals(second))
260       {
261          return true;
262       }
263       if (!first.getLocalPart().equals(second.getLocalPart()))
264       {
265          return false;
266       }
267
268       String JavaDoc namespaceURI = first.getNamespaceURI();
269       String JavaDoc[] search = null;
270       if (namespaceURI.equals(URI_DEFAULT_SOAP_ENC))
271          search = URIS_SOAP_ENC;
272       else if (namespaceURI.equals(URI_DEFAULT_SOAP_ENV))
273          search = URIS_SOAP_ENV;
274       else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSD))
275          search = URIS_SCHEMA_XSD;
276       else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSI))
277          search = URIS_SCHEMA_XSI;
278       else
279          search = new String JavaDoc[]{namespaceURI};
280
281       for (int i = 0; i < search.length; i++)
282       {
283          if (search[i].equals(second.getNamespaceURI()))
284          {
285             return true;
286          }
287       }
288       return false;
289    }
290
291    // Misc SOAP Namespaces / URIs
292
public static final String JavaDoc URI_SOAP11_NEXT_ACTOR =
293            "http://schemas.xmlsoap.org/soap/actor/next";
294    public static final String JavaDoc URI_SOAP12_NEXT_ROLE =
295            "http://www.w3.org/2002/12/soap-envelope/role/next";
296    /**
297     * @deprecated use URI_SOAP12_NEXT_ROLE
298     */

299    public static final String JavaDoc URI_SOAP12_NEXT_ACTOR = URI_SOAP12_NEXT_ROLE;
300
301    public static final String JavaDoc URI_SOAP12_RPC =
302            "http://www.w3.org/2002/12/soap-rpc";
303
304    public static final String JavaDoc URI_SOAP12_NONE_ROLE =
305            "http://www.w3.org/2002/12/soap-envelope/role/none";
306    public static final String JavaDoc URI_SOAP12_ULTIMATE_ROLE =
307            "http://www.w3.org/2002/12/soap-envelope/role/ultimateReceiver";
308
309    public static final String JavaDoc URI_SOAP11_HTTP =
310            "http://schemas.xmlsoap.org/soap/http";
311    public static final String JavaDoc URI_SOAP12_HTTP =
312            "http://www.w3.org/2002/12/http";
313
314    public static final String JavaDoc NS_URI_XMLNS =
315            "http://www.w3.org/2000/xmlns/";
316
317    public static final String JavaDoc NS_URI_XML =
318            "http://www.w3.org/XML/1998/namespace";
319
320    //
321
// Schema XSD Namespaces
322
//
323
public static final String JavaDoc URI_1999_SCHEMA_XSD =
324            "http://www.w3.org/1999/XMLSchema";
325    public static final String JavaDoc URI_2000_SCHEMA_XSD =
326            "http://www.w3.org/2000/10/XMLSchema";
327    public static final String JavaDoc URI_2001_SCHEMA_XSD =
328            "http://www.w3.org/2001/XMLSchema";
329
330    public static final String JavaDoc URI_DEFAULT_SCHEMA_XSD = URI_2001_SCHEMA_XSD;
331
332    public static final String JavaDoc[] URIS_SCHEMA_XSD = {
333       URI_2001_SCHEMA_XSD,
334       URI_2000_SCHEMA_XSD,
335       URI_1999_SCHEMA_XSD
336    };
337    public static final QName JavaDoc[] QNAMES_NIL = {
338       SchemaVersion2001.QNAME_NIL,
339       SchemaVersion2000.QNAME_NIL,
340       SchemaVersion1999.QNAME_NIL
341    };
342
343    /**
344     * Returns true if SchemaXSD Namespace
345     */

346    public static boolean isSchemaXSD(String JavaDoc s)
347    {
348       for (int i = 0; i < URIS_SCHEMA_XSD.length; i++)
349       {
350          if (URIS_SCHEMA_XSD[i].equals(s))
351          {
352             return true;
353          }
354       }
355       return false;
356    }
357
358    //
359
// Schema XSI Namespaces
360
//
361
public static final String JavaDoc URI_1999_SCHEMA_XSI =
362            "http://www.w3.org/1999/XMLSchema-instance";
363    public static final String JavaDoc URI_2000_SCHEMA_XSI =
364            "http://www.w3.org/2000/10/XMLSchema-instance";
365    public static final String JavaDoc URI_2001_SCHEMA_XSI =
366            "http://www.w3.org/2001/XMLSchema-instance";
367    public static final String JavaDoc URI_DEFAULT_SCHEMA_XSI = URI_2001_SCHEMA_XSI;
368
369    public static final String JavaDoc[] URIS_SCHEMA_XSI = {
370       URI_1999_SCHEMA_XSI,
371       URI_2000_SCHEMA_XSI,
372       URI_2001_SCHEMA_XSI,
373    };
374
375    /**
376     * Returns true if SchemaXSI Namespace
377     */

378    public static boolean isSchemaXSI(String JavaDoc s)
379    {
380       for (int i = 0; i < URIS_SCHEMA_XSI.length; i++)
381       {
382          if (URIS_SCHEMA_XSI[i].equals(s))
383          {
384             return true;
385          }
386       }
387       return false;
388    }
389
390    /**
391     * WSDL Namespace
392     */

393    public static final String JavaDoc NS_URI_WSDL11 =
394            "http://schemas.xmlsoap.org/wsdl/";
395
396    public static final String JavaDoc[] NS_URIS_WSDL = {
397       NS_URI_WSDL11,
398    };
399
400    /**
401     * Returns true if WSDL Namespace
402     */

403    public static boolean isWSDL(String JavaDoc s)
404    {
405       for (int i = 0; i < NS_URIS_WSDL.length; i++)
406       {
407          if (NS_URIS_WSDL[i].equals(s))
408          {
409             return true;
410          }
411       }
412       return false;
413    }
414
415    //
416
// WSDL extensions for SOAP in DIME
417
// (http://gotdotnet.com/team/xml_wsspecs/dime/WSDL-Extension-for-DIME.htm)
418
//
419
public static final String JavaDoc URI_DIME_WSDL =
420            "http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
421
422    public static final String JavaDoc URI_DIME_CONTENT =
423            "http://schemas.xmlsoap.org/ws/2002/04/content-type/";
424
425    public static final String JavaDoc URI_DIME_REFERENCE =
426            "http://schemas.xmlsoap.org/ws/2002/04/reference/";
427
428    public static final String JavaDoc URI_DIME_CLOSED_LAYOUT =
429            "http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout";
430
431    public static final String JavaDoc URI_DIME_OPEN_LAYOUT =
432            "http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout";
433
434    //
435
// WSDL SOAP Namespace
436
//
437
public static final String JavaDoc URI_WSDL11_SOAP =
438            "http://schemas.xmlsoap.org/wsdl/soap/";
439    public static final String JavaDoc URI_WSDL12_SOAP =
440            "http://schemas.xmlsoap.org/wsdl/soap12/";
441
442    public static final String JavaDoc[] NS_URIS_WSDL_SOAP = {
443       URI_WSDL11_SOAP,
444       URI_WSDL12_SOAP
445    };
446
447    /**
448     * Returns true if WSDL SOAP Namespace
449     */

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

669    public static final QName JavaDoc QNAME_FAULTDETAIL_STACKTRACE = new QName JavaDoc(NS_URI_AXIS, "stackTrace");
670
671    /**
672     * QName of stack trace element in an axis fault detail.
673     */

674    public static final QName JavaDoc QNAME_FAULTDETAIL_RUNTIMEEXCEPTION = new QName JavaDoc(NS_URI_AXIS, "isRuntimeException");
675
676    //QNames of well known faults
677
/**
678     * the no-service fault value
679     */

680    public static final QName JavaDoc QNAME_NO_SERVICE_FAULT_CODE
681            = new QName JavaDoc(NS_URI_AXIS, "Server.NoService");
682
683    // Misc Strings
684
//////////////////////////////////////////////////////////////////////////
685

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

720    public static final String JavaDoc JWS_DEFAULT_FILE_EXTENSION = ".jws";
721 }
722
Popular Tags