1 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 ; 24 25 import javax.xml.namespace.QName ; 26 27 public class Constants { 28 34 public static final String NS_PREFIX_SOAP_ENV = "soapenv"; 37 public static final String NS_PREFIX_SOAP_ENC = "soapenc"; 38 public static final String NS_PREFIX_SCHEMA_XSI = "xsi" ; 39 public static final String NS_PREFIX_SCHEMA_XSD = "xsd" ; 40 public static final String NS_PREFIX_WSDL = "wsdl" ; 41 public static final String NS_PREFIX_WSDL_SOAP = "wsdlsoap"; 42 public static final String NS_PREFIX_XMLSOAP = "apachesoap"; 43 public static final String NS_PREFIX_XML = "xml"; 44 45 public static final String NS_URI_AXIS = "http://xml.apache.org/axis/"; 47 public static final String NS_URI_XMLSOAP = "http://xml.apache.org/xml-soap"; 48 49 public static final String NS_URI_JAVA = "http://xml.apache.org/axis/java"; 54 55 public static final SOAPConstants DEFAULT_SOAP_VERSION = 59 SOAPConstants.SOAP11_CONSTANTS; 60 61 public static final String URI_SOAP11_ENV = 65 "http://schemas.xmlsoap.org/soap/envelope/" ; 66 public static final String URI_SOAP12_ENV = 67 "http://www.w3.org/2003/05/soap-envelope"; 68 public static final String URI_DEFAULT_SOAP_ENV = 69 DEFAULT_SOAP_VERSION.getEnvelopeURI(); 70 71 public static final String [] URIS_SOAP_ENV = { 75 URI_SOAP11_ENV, 76 URI_SOAP12_ENV, 77 }; 78 79 public static final String ENTERPRISE_LOG_CATEGORY = "org.apache.axis.enterprise"; 84 85 88 public static final String TIME_LOG_CATEGORY = "org.apache.axis.TIME"; 89 90 93 public static final String EXCEPTION_LOG_CATEGORY = "org.apache.axis.EXCEPTIONS"; 94 95 96 public static final String ANYCONTENT = "_any"; 97 100 public static final int HTTP_TXR_BUFFER_SIZE = 8 * 1024; 101 102 103 public static final String WSIBP11_COMPAT_PROPERTY = "axis.ws-i.bp11.compatibility"; 104 105 112 public static boolean isSOAP_ENV(String 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 URI_LITERAL_ENC = ""; 123 124 public static final String URI_SOAP11_ENC = 128 "http://schemas.xmlsoap.org/soap/encoding/" ; 129 public static final String URI_SOAP12_ENC = 130 "http://www.w3.org/2003/05/soap-encoding"; 131 public static final String URI_SOAP12_NOENC = 132 "http://www.w3.org/2003/05/soap-envelope/encoding/none"; 133 public static final String URI_DEFAULT_SOAP_ENC = 134 DEFAULT_SOAP_VERSION.getEncodingURI(); 135 136 public static final String [] URIS_SOAP_ENC = { 137 URI_SOAP12_ENC, 138 URI_SOAP11_ENC, 139 }; 140 141 148 public static boolean isSOAP_ENC(String 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 166 public static String getValue(Attributes attributes, 167 String [] search, 168 String 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 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 199 public static String getValue(Attributes attributes, 200 QName [] search) { 201 if (attributes == null || search == null) 202 return null; 203 204 if (attributes.getLength() == 0) return null; 205 206 String 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 223 public static boolean equals(QName first, QName 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 namespaceURI = first.getNamespaceURI(); 238 String [] 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 [] {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 public static final String URI_SOAP11_NEXT_ACTOR = 260 "http://schemas.xmlsoap.org/soap/actor/next" ; 261 public static final String URI_SOAP12_NEXT_ROLE = 262 "http://www.w3.org/2003/05/soap-envelope/role/next"; 263 264 public static final String URI_SOAP12_NEXT_ACTOR = URI_SOAP12_NEXT_ROLE; 265 266 public static final String URI_SOAP12_RPC = 267 "http://www.w3.org/2003/05/soap-rpc"; 268 269 public static final String URI_SOAP12_NONE_ROLE = 270 "http://www.w3.org/2003/05/soap-envelope/role/none"; 271 public static final String URI_SOAP12_ULTIMATE_ROLE = 272 "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"; 273 274 public static final String URI_SOAP11_HTTP = 275 "http://schemas.xmlsoap.org/soap/http"; 276 public static final String URI_SOAP12_HTTP = 277 "http://www.w3.org/2003/05/http"; 278 279 public static final String NS_URI_XMLNS = 280 "http://www.w3.org/2000/xmlns/"; 281 282 public static final String NS_URI_XML = 283 "http://www.w3.org/XML/1998/namespace"; 284 285 public static final String URI_1999_SCHEMA_XSD = 289 "http://www.w3.org/1999/XMLSchema"; 290 public static final String URI_2000_SCHEMA_XSD = 291 "http://www.w3.org/2000/10/XMLSchema"; 292 public static final String URI_2001_SCHEMA_XSD = 293 "http://www.w3.org/2001/XMLSchema"; 294 295 public static final String URI_DEFAULT_SCHEMA_XSD = URI_2001_SCHEMA_XSD; 296 297 public static final String [] URIS_SCHEMA_XSD = { 298 URI_1999_SCHEMA_XSD, 299 URI_2000_SCHEMA_XSD, 300 URI_2001_SCHEMA_XSD 301 }; 302 public static final QName [] QNAMES_NIL = { 303 SchemaVersion2001.QNAME_NIL, 304 SchemaVersion2000.QNAME_NIL, 305 SchemaVersion1999.QNAME_NIL 306 }; 307 308 314 public static boolean isSchemaXSD(String 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 public static final String URI_1999_SCHEMA_XSI = 327 "http://www.w3.org/1999/XMLSchema-instance"; 328 public static final String URI_2000_SCHEMA_XSI = 329 "http://www.w3.org/2000/10/XMLSchema-instance"; 330 public static final String URI_2001_SCHEMA_XSI = 331 "http://www.w3.org/2001/XMLSchema-instance"; 332 public static final String URI_DEFAULT_SCHEMA_XSI = URI_2001_SCHEMA_XSI; 333 334 public static final String [] URIS_SCHEMA_XSI = { 335 URI_1999_SCHEMA_XSI, 336 URI_2000_SCHEMA_XSI, 337 URI_2001_SCHEMA_XSI, 338 }; 339 340 346 public static boolean isSchemaXSI(String 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 358 public static final String NS_URI_WSDL11 = 359 "http://schemas.xmlsoap.org/wsdl/"; 360 361 public static final String [] NS_URIS_WSDL = { 362 NS_URI_WSDL11, 363 }; 364 365 371 public static boolean isWSDL(String 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 public static final String URI_DIME_WSDL = 385 "http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"; 386 387 public static final String URI_DIME_CONTENT = 388 "http://schemas.xmlsoap.org/ws/2002/04/content-type/"; 389 390 public static final String URI_DIME_REFERENCE= 391 "http://schemas.xmlsoap.org/ws/2002/04/reference/"; 392 393 public static final String URI_DIME_CLOSED_LAYOUT= 394 "http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout"; 395 396 public static final String URI_DIME_OPEN_LAYOUT= 397 "http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout"; 398 399 public static final String URI_WSDL11_SOAP = 403 "http://schemas.xmlsoap.org/wsdl/soap/"; 404 public static final String URI_WSDL12_SOAP = 405 "http://schemas.xmlsoap.org/wsdl/soap12/"; 406 407 public static final String [] NS_URIS_WSDL_SOAP = { 408 URI_WSDL11_SOAP, 409 URI_WSDL12_SOAP 410 }; 411 412 419 public static boolean isWSDLSOAP(String 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 public static final String AXIS_SAX = "Axis SAX Mechanism"; 430 431 public static final String ELEM_ENVELOPE = "Envelope" ; 432 public static final String ELEM_HEADER = "Header" ; 433 public static final String ELEM_BODY = "Body" ; 434 public static final String ELEM_FAULT = "Fault" ; 435 436 public static final String ELEM_NOTUNDERSTOOD = "NotUnderstood"; 437 public static final String ELEM_UPGRADE = "Upgrade"; 438 public static final String ELEM_SUPPORTEDENVELOPE = "SupportedEnvelope"; 439 440 public static final String ELEM_FAULT_CODE = "faultcode" ; 441 public static final String ELEM_FAULT_STRING = "faultstring" ; 442 public static final String ELEM_FAULT_DETAIL = "detail" ; 443 public static final String ELEM_FAULT_ACTOR = "faultactor" ; 444 445 public static final String ELEM_FAULT_CODE_SOAP12 = "Code" ; 446 public static final String ELEM_FAULT_VALUE_SOAP12 = "Value" ; 447 public static final String ELEM_FAULT_SUBCODE_SOAP12 = "Subcode" ; 448 public static final String ELEM_FAULT_REASON_SOAP12 = "Reason" ; 449 public static final String ELEM_FAULT_NODE_SOAP12 = "Node" ; 450 public static final String ELEM_FAULT_ROLE_SOAP12 = "Role" ; 451 public static final String ELEM_FAULT_DETAIL_SOAP12 = "Detail" ; 452 public static final String ELEM_TEXT_SOAP12 = "Text" ; 453 454 public static final String ATTR_MUST_UNDERSTAND = "mustUnderstand" ; 455 public static final String ATTR_ENCODING_STYLE = "encodingStyle" ; 456 public static final String ATTR_ACTOR = "actor" ; 457 public static final String ATTR_ROLE = "role" ; 458 public static final String ATTR_RELAY = "relay" ; 459 public static final String ATTR_ROOT = "root" ; 460 public static final String ATTR_ID = "id" ; 461 public static final String ATTR_HREF = "href" ; 462 public static final String ATTR_REF = "ref" ; 463 public static final String ATTR_QNAME = "qname"; 464 public static final String ATTR_ARRAY_TYPE = "arrayType"; 465 public static final String ATTR_ITEM_TYPE = "itemType"; 466 public static final String ATTR_ARRAY_SIZE = "arraySize"; 467 public static final String ATTR_OFFSET = "offset"; 468 public static final String ATTR_POSITION = "position"; 469 public static final String ATTR_TYPE = "type"; 470 public static final String ATTR_HANDLERINFOCHAIN = "handlerInfoChain"; 471 472 public static final String FAULT_CLIENT = "Client"; 475 476 public static final String FAULT_SERVER_GENERAL = 477 "Server.generalException"; 478 479 public static final String FAULT_SERVER_USER = 480 "Server.userException"; 481 482 public static final QName FAULT_VERSIONMISMATCH = 483 new QName (URI_SOAP11_ENV, "VersionMismatch"); 484 485 public static final QName FAULT_MUSTUNDERSTAND = 486 new QName (URI_SOAP11_ENV, "MustUnderstand"); 487 488 489 public static final QName FAULT_SOAP12_MUSTUNDERSTAND = 490 new QName (URI_SOAP12_ENV, "MustUnderstand"); 491 492 public static final QName FAULT_SOAP12_VERSIONMISMATCH = 493 new QName (URI_SOAP12_ENV, "VersionMismatch"); 494 495 public static final QName FAULT_SOAP12_DATAENCODINGUNKNOWN = 496 new QName (URI_SOAP12_ENV, "DataEncodingUnknown"); 497 498 public static final QName FAULT_SOAP12_SENDER = 499 new QName (URI_SOAP12_ENV, "Sender"); 500 501 public static final QName FAULT_SOAP12_RECEIVER = 502 new QName (URI_SOAP12_ENV, "Receiver"); 503 504 public static final QName FAULT_SUBCODE_BADARGS = 506 new QName (URI_SOAP12_RPC, "BadArguments"); 507 public static final QName FAULT_SUBCODE_PROC_NOT_PRESENT = 508 new QName (URI_SOAP12_RPC, "ProcedureNotPresent"); 509 510 public static final QName QNAME_FAULTCODE = 513 new QName ("", ELEM_FAULT_CODE); 514 public static final QName QNAME_FAULTSTRING = 515 new QName ("", ELEM_FAULT_STRING); 516 public static final QName QNAME_FAULTACTOR = 517 new QName ("", ELEM_FAULT_ACTOR); 518 public static final QName QNAME_FAULTDETAILS = 519 new QName ("", ELEM_FAULT_DETAIL); 520 521 public static final QName QNAME_FAULTCODE_SOAP12 = 522 new QName (URI_SOAP12_ENV, ELEM_FAULT_CODE_SOAP12); 523 public static final QName QNAME_FAULTVALUE_SOAP12 = 524 new QName (URI_SOAP12_ENV, ELEM_FAULT_VALUE_SOAP12); 525 public static final QName QNAME_FAULTSUBCODE_SOAP12 = 526 new QName (URI_SOAP12_ENV, ELEM_FAULT_SUBCODE_SOAP12); 527 public static final QName QNAME_FAULTREASON_SOAP12 = 528 new QName (URI_SOAP12_ENV, ELEM_FAULT_REASON_SOAP12); 529 public static final QName QNAME_TEXT_SOAP12 = 530 new QName (URI_SOAP12_ENV, ELEM_TEXT_SOAP12); 531 532 public static final QName QNAME_FAULTNODE_SOAP12 = 533 new QName (URI_SOAP12_ENV, ELEM_FAULT_NODE_SOAP12); 534 public static final QName QNAME_FAULTROLE_SOAP12 = 535 new QName (URI_SOAP12_ENV, ELEM_FAULT_ROLE_SOAP12); 536 public static final QName QNAME_FAULTDETAIL_SOAP12 = 537 new QName (URI_SOAP12_ENV, ELEM_FAULT_DETAIL_SOAP12); 538 public static final QName QNAME_NOTUNDERSTOOD = 539 new QName (URI_SOAP12_ENV, ELEM_NOTUNDERSTOOD); 540 541 public static final QName XSD_STRING = new QName (URI_DEFAULT_SCHEMA_XSD, "string"); 543 public static final QName XSD_BOOLEAN = new QName (URI_DEFAULT_SCHEMA_XSD, "boolean"); 544 public static final QName XSD_DOUBLE = new QName (URI_DEFAULT_SCHEMA_XSD, "double"); 545 public static final QName XSD_FLOAT = new QName (URI_DEFAULT_SCHEMA_XSD, "float"); 546 public static final QName XSD_INT = new QName (URI_DEFAULT_SCHEMA_XSD, "int"); 547 public static final QName XSD_INTEGER = new QName (URI_DEFAULT_SCHEMA_XSD, "integer"); 548 public static final QName XSD_LONG = new QName (URI_DEFAULT_SCHEMA_XSD, "long"); 549 public static final QName XSD_SHORT = new QName (URI_DEFAULT_SCHEMA_XSD, "short"); 550 public static final QName XSD_BYTE = new QName (URI_DEFAULT_SCHEMA_XSD, "byte"); 551 public static final QName XSD_DECIMAL = new QName (URI_DEFAULT_SCHEMA_XSD, "decimal"); 552 public static final QName XSD_BASE64 = new QName (URI_DEFAULT_SCHEMA_XSD, "base64Binary"); 553 public static final QName XSD_HEXBIN = new QName (URI_DEFAULT_SCHEMA_XSD, "hexBinary"); 554 public static final QName XSD_ANYSIMPLETYPE = new QName (URI_DEFAULT_SCHEMA_XSD, "anySimpleType"); 555 public static final QName XSD_ANYTYPE = new QName (URI_DEFAULT_SCHEMA_XSD, "anyType"); 556 public static final QName XSD_ANY = new QName (URI_DEFAULT_SCHEMA_XSD, "any"); 557 public static final QName XSD_QNAME = new QName (URI_DEFAULT_SCHEMA_XSD, "QName"); 558 public static final QName XSD_DATETIME = new QName (URI_DEFAULT_SCHEMA_XSD, "dateTime"); 559 public static final QName XSD_DATE = new QName (URI_DEFAULT_SCHEMA_XSD, "date"); 560 public static final QName XSD_TIME = new QName (URI_DEFAULT_SCHEMA_XSD, "time"); 561 public static final QName XSD_TIMEINSTANT1999 = new QName (URI_1999_SCHEMA_XSD, "timeInstant"); 562 public static final QName XSD_TIMEINSTANT2000 = new QName (URI_2000_SCHEMA_XSD, "timeInstant"); 563 564 public static final QName XSD_NORMALIZEDSTRING = new QName (URI_2001_SCHEMA_XSD, "normalizedString"); 565 public static final QName XSD_TOKEN = new QName (URI_2001_SCHEMA_XSD, "token"); 566 567 public static final QName XSD_UNSIGNEDLONG = new QName (URI_2001_SCHEMA_XSD, "unsignedLong"); 568 public static final QName XSD_UNSIGNEDINT = new QName (URI_2001_SCHEMA_XSD, "unsignedInt"); 569 public static final QName XSD_UNSIGNEDSHORT = new QName (URI_2001_SCHEMA_XSD, "unsignedShort"); 570 public static final QName XSD_UNSIGNEDBYTE = new QName (URI_2001_SCHEMA_XSD, "unsignedByte"); 571 public static final QName XSD_POSITIVEINTEGER = new QName (URI_2001_SCHEMA_XSD, "positiveInteger"); 572 public static final QName XSD_NEGATIVEINTEGER = new QName (URI_2001_SCHEMA_XSD, "negativeInteger"); 573 public static final QName XSD_NONNEGATIVEINTEGER = new QName (URI_2001_SCHEMA_XSD, "nonNegativeInteger"); 574 public static final QName XSD_NONPOSITIVEINTEGER = new QName (URI_2001_SCHEMA_XSD, "nonPositiveInteger"); 575 576 public static final QName XSD_YEARMONTH = new QName (URI_2001_SCHEMA_XSD, "gYearMonth"); 577 public static final QName XSD_MONTHDAY = new QName (URI_2001_SCHEMA_XSD, "gMonthDay"); 578 public static final QName XSD_YEAR = new QName (URI_2001_SCHEMA_XSD, "gYear"); 579 public static final QName XSD_MONTH = new QName (URI_2001_SCHEMA_XSD, "gMonth"); 580 public static final QName XSD_DAY = new QName (URI_2001_SCHEMA_XSD, "gDay"); 581 public static final QName XSD_DURATION = new QName (URI_2001_SCHEMA_XSD, "duration"); 582 583 public static final QName XSD_NAME = new QName (URI_2001_SCHEMA_XSD, "Name"); 584 public static final QName XSD_NCNAME = new QName (URI_2001_SCHEMA_XSD, "NCName"); 585 public static final QName XSD_NMTOKEN = new QName (URI_2001_SCHEMA_XSD, "NMTOKEN"); 586 public static final QName XSD_NMTOKENS = new QName (URI_2001_SCHEMA_XSD, "NMTOKENS"); 587 public static final QName XSD_NOTATION = new QName (URI_2001_SCHEMA_XSD, "NOTATION"); 588 public static final QName XSD_ENTITY = new QName (URI_2001_SCHEMA_XSD, "ENTITY"); 589 public static final QName XSD_ENTITIES = new QName (URI_2001_SCHEMA_XSD, "ENTITIES"); 590 public static final QName XSD_IDREF = new QName (URI_2001_SCHEMA_XSD, "IDREF"); 591 public static final QName XSD_IDREFS = new QName (URI_2001_SCHEMA_XSD, "IDREFS"); 592 public static final QName XSD_ANYURI = new QName (URI_2001_SCHEMA_XSD, "anyURI"); 593 public static final QName XSD_LANGUAGE = new QName (URI_2001_SCHEMA_XSD, "language"); 594 public static final QName XSD_ID = new QName (URI_2001_SCHEMA_XSD, "ID"); 595 public static final QName XSD_SCHEMA = new QName (URI_2001_SCHEMA_XSD, "schema"); 596 597 public static final QName XML_LANG = new QName (NS_URI_XML, "lang"); 598 599 public static final QName SOAP_BASE64 = new QName (URI_DEFAULT_SOAP_ENC, "base64"); 600 public static final QName SOAP_BASE64BINARY = new QName (URI_DEFAULT_SOAP_ENC, "base64Binary"); 601 public static final QName SOAP_STRING = new QName (URI_DEFAULT_SOAP_ENC, "string"); 602 public static final QName SOAP_BOOLEAN = new QName (URI_DEFAULT_SOAP_ENC, "boolean"); 603 public static final QName SOAP_DOUBLE = new QName (URI_DEFAULT_SOAP_ENC, "double"); 604 public static final QName SOAP_FLOAT = new QName (URI_DEFAULT_SOAP_ENC, "float"); 605 public static final QName SOAP_INT = new QName (URI_DEFAULT_SOAP_ENC, "int"); 606 public static final QName SOAP_LONG = new QName (URI_DEFAULT_SOAP_ENC, "long"); 607 public static final QName SOAP_SHORT = new QName (URI_DEFAULT_SOAP_ENC, "short"); 608 public static final QName SOAP_BYTE = new QName (URI_DEFAULT_SOAP_ENC, "byte"); 609 public static final QName SOAP_INTEGER = new QName (URI_DEFAULT_SOAP_ENC, "integer"); 610 public static final QName SOAP_DECIMAL = new QName (URI_DEFAULT_SOAP_ENC, "decimal"); 611 public static final QName SOAP_ARRAY = new QName (URI_DEFAULT_SOAP_ENC, "Array"); 612 public static final QName SOAP_COMMON_ATTRS11 = new QName (URI_SOAP11_ENC, "commonAttributes"); 613 public static final QName SOAP_COMMON_ATTRS12 = new QName (URI_SOAP12_ENC, "commonAttributes"); 614 public static final QName SOAP_ARRAY_ATTRS11 = new QName (URI_SOAP11_ENC, "arrayAttributes"); 615 public static final QName SOAP_ARRAY_ATTRS12 = new QName (URI_SOAP12_ENC, "arrayAttributes"); 616 public static final QName SOAP_ARRAY12 = new QName (URI_SOAP12_ENC, "Array"); 617 618 public static final QName SOAP_MAP = new QName (NS_URI_XMLSOAP, "Map"); 619 public static final QName SOAP_ELEMENT = new QName (NS_URI_XMLSOAP, "Element"); 620 public static final QName SOAP_DOCUMENT = new QName (NS_URI_XMLSOAP, "Document"); 621 public static final QName SOAP_VECTOR = new QName (NS_URI_XMLSOAP, "Vector"); 622 public static final QName MIME_IMAGE = new QName (NS_URI_XMLSOAP, "Image"); 623 public static final QName MIME_PLAINTEXT = new QName (NS_URI_XMLSOAP, "PlainText"); 624 public static final QName MIME_MULTIPART = new QName (NS_URI_XMLSOAP, "Multipart"); 625 public static final QName MIME_SOURCE = new QName (NS_URI_XMLSOAP, "Source"); 626 public static final QName MIME_OCTETSTREAM = new QName (NS_URI_XMLSOAP, "octet-stream"); 627 public static final QName MIME_DATA_HANDLER = new QName (NS_URI_XMLSOAP, "DataHandler"); 628 629 630 public static final QName QNAME_LITERAL_ITEM = new QName (URI_LITERAL_ENC,"item"); 631 public static final QName QNAME_RPC_RESULT = new QName (URI_SOAP12_RPC,"result"); 632 633 636 public static final QName QNAME_FAULTDETAIL_STACKTRACE = new QName (NS_URI_AXIS,"stackTrace"); 637 638 642 public static final QName QNAME_FAULTDETAIL_EXCEPTIONNAME = new QName (NS_URI_AXIS, "exceptionName"); 643 644 648 public static final QName QNAME_FAULTDETAIL_RUNTIMEEXCEPTION = new QName (NS_URI_AXIS, "isRuntimeException"); 649 650 653 public static final QName QNAME_FAULTDETAIL_HTTPERRORCODE = new QName (NS_URI_AXIS, "HttpErrorCode"); 654 655 658 public static final QName QNAME_FAULTDETAIL_NESTEDFAULT = new QName (NS_URI_AXIS, "nestedFault"); 659 660 663 public static final QName QNAME_FAULTDETAIL_HOSTNAME = new QName (NS_URI_AXIS, "hostname"); 664 665 669 public static final QName QNAME_NO_SERVICE_FAULT_CODE 670 = new QName (NS_URI_AXIS, "Server.NoService"); 671 672 675 public static final String MC_JWS_CLASSDIR = "jws.classDir" ; 677 public static final String MC_HOME_DIR = "home.dir"; 679 680 public static final String MC_RELATIVE_PATH = "path"; 682 683 public static final String MC_REALPATH = "realpath"; 685 public static final String MC_CONFIGPATH = "configPath"; 687 public static final String MC_REMOTE_ADDR = "remoteaddr"; 689 public static final String MC_SERVLET_ENDPOINT_CONTEXT = "servletEndpointContext"; 692 693 public static final String MC_NO_OPERATION_OK = "NoOperationOK"; 698 699 public static final String MC_SINGLE_SOAP_VERSION = "SingleSOAPVersion"; 703 704 709 public static final String JWS_DEFAULT_FILE_EXTENSION = ".jws"; 710 711 716 public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10; 717 718 723 public static final String MIME_CT_APPLICATION_OCTETSTREAM = "application/octet-stream"; 724 public static final String MIME_CT_TEXT_PLAIN = "text/plain"; 725 public static final String MIME_CT_IMAGE_JPEG = "image/jpeg"; 726 public static final String MIME_CT_IMAGE_GIF = "image/gif"; 727 public static final String MIME_CT_TEXT_XML = "text/xml"; 728 public static final String MIME_CT_APPLICATION_XML = "application/xml"; 729 public static final String MIME_CT_MULTIPART_PREFIX = "multipart/"; 730 } 731 | Popular Tags |