FileDocCategorySizeDatePackage
Constants.javaAPI DocApache Axis 1.433024Sat Apr 22 18:57:28 BST 2006org.apache.axis

Constants

public class Constants extends Object

Fields Summary
public static final String
NS_PREFIX_SOAP_ENV
public static final String
NS_PREFIX_SOAP_ENC
public static final String
NS_PREFIX_SCHEMA_XSI
public static final String
NS_PREFIX_SCHEMA_XSD
public static final String
NS_PREFIX_WSDL
public static final String
NS_PREFIX_WSDL_SOAP
public static final String
NS_PREFIX_XMLSOAP
public static final String
NS_PREFIX_XML
public static final String
NS_PREFIX_XOP
public static final String
NS_URI_AXIS
public static final String
NS_URI_XMLSOAP
public static final String
NS_URI_JAVA
public static final org.apache.axis.soap.SOAPConstants
DEFAULT_SOAP_VERSION
public static final String
URI_SOAP11_ENV
public static final String
URI_SOAP12_ENV
public static final String
URI_DEFAULT_SOAP_ENV
public static final String[]
URIS_SOAP_ENV
public static final String
ENTERPRISE_LOG_CATEGORY
public static final String
TIME_LOG_CATEGORY
time logged stuff.
public static final String
EXCEPTION_LOG_CATEGORY
Servlet exceptions. Axis faults are logged at debug level here.
public static final String
ANYCONTENT
The name of the field which accepts xsd:any content in Beans.
public static final int
HTTP_TXR_BUFFER_SIZE
The size of the buffer size for.
public static final String
WSIBP11_COMPAT_PROPERTY
Basic Profile 1.1 compatibility flag
public static final String
URI_LITERAL_ENC
public static final String
URI_SOAP11_ENC
public static final String
URI_SOAP12_ENC
public static final String
URI_SOAP12_NOENC
public static final String
URI_DEFAULT_SOAP_ENC
public static final String[]
URIS_SOAP_ENC
public static final String
URI_SOAP11_NEXT_ACTOR
public static final String
URI_SOAP12_NEXT_ROLE
public static final String
URI_SOAP12_NEXT_ACTOR
public static final String
URI_SOAP12_RPC
public static final String
URI_SOAP12_NONE_ROLE
public static final String
URI_SOAP12_ULTIMATE_ROLE
public static final String
URI_SOAP11_HTTP
public static final String
URI_SOAP12_HTTP
public static final String
NS_URI_XMLNS
public static final String
NS_URI_XML
public static final String
URI_1999_SCHEMA_XSD
public static final String
URI_2000_SCHEMA_XSD
public static final String
URI_2001_SCHEMA_XSD
public static final String
URI_DEFAULT_SCHEMA_XSD
public static final String[]
URIS_SCHEMA_XSD
public static final QName[]
QNAMES_NIL
public static final String
URI_1999_SCHEMA_XSI
public static final String
URI_2000_SCHEMA_XSI
public static final String
URI_2001_SCHEMA_XSI
public static final String
URI_DEFAULT_SCHEMA_XSI
public static final String[]
URIS_SCHEMA_XSI
public static final String
NS_URI_WSDL11
WSDL Namespace.
public static final String[]
NS_URIS_WSDL
public static final String
URI_DIME_WSDL
public static final String
URI_DIME_CONTENT
public static final String
URI_DIME_REFERENCE
public static final String
URI_DIME_CLOSED_LAYOUT
public static final String
URI_DIME_OPEN_LAYOUT
public static final String
URI_XOP_INCLUDE
public static final String
ELEM_XOP_INCLUDE
public static final String
URI_WSDL11_SOAP
public static final String
URI_WSDL12_SOAP
public static final String[]
NS_URIS_WSDL_SOAP
public static final String
AXIS_SAX
public static final String
ELEM_ENVELOPE
public static final String
ELEM_HEADER
public static final String
ELEM_BODY
public static final String
ELEM_FAULT
public static final String
ELEM_NOTUNDERSTOOD
public static final String
ELEM_UPGRADE
public static final String
ELEM_SUPPORTEDENVELOPE
public static final String
ELEM_FAULT_CODE
public static final String
ELEM_FAULT_STRING
public static final String
ELEM_FAULT_DETAIL
public static final String
ELEM_FAULT_ACTOR
public static final String
ELEM_FAULT_CODE_SOAP12
public static final String
ELEM_FAULT_VALUE_SOAP12
public static final String
ELEM_FAULT_SUBCODE_SOAP12
public static final String
ELEM_FAULT_REASON_SOAP12
public static final String
ELEM_FAULT_NODE_SOAP12
public static final String
ELEM_FAULT_ROLE_SOAP12
public static final String
ELEM_FAULT_DETAIL_SOAP12
public static final String
ELEM_TEXT_SOAP12
public static final String
ATTR_MUST_UNDERSTAND
public static final String
ATTR_ENCODING_STYLE
public static final String
ATTR_ACTOR
public static final String
ATTR_ROLE
public static final String
ATTR_RELAY
public static final String
ATTR_ROOT
public static final String
ATTR_ID
public static final String
ATTR_HREF
public static final String
ATTR_REF
public static final String
ATTR_QNAME
public static final String
ATTR_ARRAY_TYPE
public static final String
ATTR_ITEM_TYPE
public static final String
ATTR_ARRAY_SIZE
public static final String
ATTR_OFFSET
public static final String
ATTR_POSITION
public static final String
ATTR_TYPE
public static final String
ATTR_HANDLERINFOCHAIN
public static final String
FAULT_CLIENT
public static final String
FAULT_SERVER_GENERAL
public static final String
FAULT_SERVER_USER
public static final QName
FAULT_VERSIONMISMATCH
public static final QName
FAULT_MUSTUNDERSTAND
public static final QName
FAULT_SOAP12_MUSTUNDERSTAND
public static final QName
FAULT_SOAP12_VERSIONMISMATCH
public static final QName
FAULT_SOAP12_DATAENCODINGUNKNOWN
public static final QName
FAULT_SOAP12_SENDER
public static final QName
FAULT_SOAP12_RECEIVER
public static final QName
FAULT_SUBCODE_BADARGS
public static final QName
FAULT_SUBCODE_PROC_NOT_PRESENT
public static final QName
QNAME_FAULTCODE
public static final QName
QNAME_FAULTSTRING
public static final QName
QNAME_FAULTACTOR
public static final QName
QNAME_FAULTDETAILS
public static final QName
QNAME_FAULTCODE_SOAP12
public static final QName
QNAME_FAULTVALUE_SOAP12
public static final QName
QNAME_FAULTSUBCODE_SOAP12
public static final QName
QNAME_FAULTREASON_SOAP12
public static final QName
QNAME_TEXT_SOAP12
public static final QName
QNAME_FAULTNODE_SOAP12
public static final QName
QNAME_FAULTROLE_SOAP12
public static final QName
QNAME_FAULTDETAIL_SOAP12
public static final QName
QNAME_NOTUNDERSTOOD
public static final QName
XSD_STRING
public static final QName
XSD_BOOLEAN
public static final QName
XSD_DOUBLE
public static final QName
XSD_FLOAT
public static final QName
XSD_INT
public static final QName
XSD_INTEGER
public static final QName
XSD_LONG
public static final QName
XSD_SHORT
public static final QName
XSD_BYTE
public static final QName
XSD_DECIMAL
public static final QName
XSD_BASE64
public static final QName
XSD_HEXBIN
public static final QName
XSD_ANYSIMPLETYPE
public static final QName
XSD_ANYTYPE
public static final QName
XSD_ANY
public static final QName
XSD_QNAME
public static final QName
XSD_DATETIME
public static final QName
XSD_DATE
public static final QName
XSD_TIME
public static final QName
XSD_TIMEINSTANT1999
public static final QName
XSD_TIMEINSTANT2000
public static final QName
XSD_NORMALIZEDSTRING
public static final QName
XSD_TOKEN
public static final QName
XSD_UNSIGNEDLONG
public static final QName
XSD_UNSIGNEDINT
public static final QName
XSD_UNSIGNEDSHORT
public static final QName
XSD_UNSIGNEDBYTE
public static final QName
XSD_POSITIVEINTEGER
public static final QName
XSD_NEGATIVEINTEGER
public static final QName
XSD_NONNEGATIVEINTEGER
public static final QName
XSD_NONPOSITIVEINTEGER
public static final QName
XSD_YEARMONTH
public static final QName
XSD_MONTHDAY
public static final QName
XSD_YEAR
public static final QName
XSD_MONTH
public static final QName
XSD_DAY
public static final QName
XSD_DURATION
public static final QName
XSD_NAME
public static final QName
XSD_NCNAME
public static final QName
XSD_NMTOKEN
public static final QName
XSD_NMTOKENS
public static final QName
XSD_NOTATION
public static final QName
XSD_ENTITY
public static final QName
XSD_ENTITIES
public static final QName
XSD_IDREF
public static final QName
XSD_IDREFS
public static final QName
XSD_ANYURI
public static final QName
XSD_LANGUAGE
public static final QName
XSD_ID
public static final QName
XSD_SCHEMA
public static final QName
XML_LANG
public static final QName
SOAP_BASE64
public static final QName
SOAP_BASE64BINARY
public static final QName
SOAP_STRING
public static final QName
SOAP_BOOLEAN
public static final QName
SOAP_DOUBLE
public static final QName
SOAP_FLOAT
public static final QName
SOAP_INT
public static final QName
SOAP_LONG
public static final QName
SOAP_SHORT
public static final QName
SOAP_BYTE
public static final QName
SOAP_INTEGER
public static final QName
SOAP_DECIMAL
public static final QName
SOAP_ARRAY
public static final QName
SOAP_COMMON_ATTRS11
public static final QName
SOAP_COMMON_ATTRS12
public static final QName
SOAP_ARRAY_ATTRS11
public static final QName
SOAP_ARRAY_ATTRS12
public static final QName
SOAP_ARRAY12
public static final QName
SOAP_MAP
public static final QName
SOAP_ELEMENT
public static final QName
SOAP_DOCUMENT
public static final QName
SOAP_VECTOR
public static final QName
MIME_IMAGE
public static final QName
MIME_PLAINTEXT
public static final QName
MIME_MULTIPART
public static final QName
MIME_SOURCE
public static final QName
MIME_OCTETSTREAM
public static final QName
MIME_DATA_HANDLER
public static final QName
QNAME_LITERAL_ITEM
public static final QName
QNAME_RPC_RESULT
public static final QName
QNAME_FAULTDETAIL_STACKTRACE
QName of stack trace element in an axis fault detail.
public static final QName
QNAME_FAULTDETAIL_EXCEPTIONNAME
QName of exception Name element in an axis fault detail. Do not use - this is for pre-1.0 server->client exceptions.
public static final QName
QNAME_FAULTDETAIL_RUNTIMEEXCEPTION
Flag set if this was a runtime exception, rather than something thrown by the class at the end of the chain. Axis' logging treats runtime exceptions more seriously.
public static final QName
QNAME_FAULTDETAIL_HTTPERRORCODE
QName of stack trace element in an axis fault detail.
public static final QName
QNAME_FAULTDETAIL_NESTEDFAULT
QName of a nested fault in an axis fault detail.
public static final QName
QNAME_FAULTDETAIL_HOSTNAME
QName of a hostname in an axis fault detail.
public static final QName
QNAME_NO_SERVICE_FAULT_CODE
The no-service fault value.
public static final String
MC_JWS_CLASSDIR
public static final String
MC_HOME_DIR
public static final String
MC_RELATIVE_PATH
public static final String
MC_REALPATH
public static final String
MC_CONFIGPATH
public static final String
MC_REMOTE_ADDR
public static final String
MC_SERVLET_ENDPOINT_CONTEXT
public static final String
MC_NO_OPERATION_OK
public static final String
MC_SINGLE_SOAP_VERSION
public static final String
JWS_DEFAULT_FILE_EXTENSION
What the extension of JWS files is. If changing this, note that AxisServlet has an xdoclet declaration in the class javadocs that also needs updating.
public static final int
DEFAULT_MESSAGE_TIMEOUT
The default timeout for messages.
public static final String
MIME_CT_APPLICATION_OCTETSTREAM
MIME Content Types
public static final String
MIME_CT_TEXT_PLAIN
public static final String
MIME_CT_IMAGE_JPEG
public static final String
MIME_CT_IMAGE_GIF
public static final String
MIME_CT_TEXT_XML
public static final String
MIME_CT_APPLICATION_XML
public static final String
MIME_CT_MULTIPART_PREFIX
Constructors Summary
Methods Summary
public static booleanequals(javax.xml.namespace.QName first, javax.xml.namespace.QName second)
equals The first QName is the current version of the name. The second qname is compared with the first considering all namespace uri versions.

param
first Currently supported QName
param
second any qname
return
true if the qnames represent the same qname (paster namespace uri versions considered

        if (first == second) {
            return true;
        }
        if (first==null || second==null) {
            return false;
        }
        if (first.equals(second)) {
            return true;
        }
        if (!first.getLocalPart().equals(second.getLocalPart())) {
            return false;
        }

        String namespaceURI = first.getNamespaceURI();
        String[] search = null;
        if (namespaceURI.equals(URI_DEFAULT_SOAP_ENC))
            search = URIS_SOAP_ENC;
        else if (namespaceURI.equals(URI_DEFAULT_SOAP_ENV))
            search = URIS_SOAP_ENV;
        else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSD))
            search = URIS_SCHEMA_XSD;
        else if (namespaceURI.equals(URI_DEFAULT_SCHEMA_XSI))
            search = URIS_SCHEMA_XSI;
        else
            search = new String[] {namespaceURI};

        for (int i=0; i < search.length; i++) {
            if (search[i].equals(second.getNamespaceURI())) {
                return true;
            }
        }
        return false;
    
public static java.lang.StringgetValue(org.xml.sax.Attributes attributes, java.lang.String[] search, java.lang.String localPart)
This utility routine returns the value of an attribute which might be in one of several namespaces.

param
attributes the attributes to search
param
search an array of namespace URI strings to search
param
localPart is the local part of the attribute name
return
the value of the attribute or null

        if (attributes == null || search == null || localPart == null) {
            return null;
        }
        
        int len = attributes.getLength();
        
        if (len == 0) {
            return null;
        }
        
        for (int i=0; i < len; i++) {
            if (attributes.getLocalName(i).equals(localPart)) {
                String uri = attributes.getURI(i);
                for (int j=0; j<search.length; j++) {
                    if (search[j].equals(uri)) return attributes.getValue(i);
                }
            }
        }
        
        return null;
    
public static java.lang.StringgetValue(org.xml.sax.Attributes attributes, javax.xml.namespace.QName[] search)
Search an attribute collection for a list of QNames, returning the value of the first one found, or null if none were found.

param
attributes
param
search
return
the value of the attribute

        if (attributes == null || search == null)
            return null;

        if (attributes.getLength() == 0) return null;

        String value = null;
        for (int i=0; (value == null) && (i < search.length); i++) {
            value = attributes.getValue(search[i].getNamespaceURI(),
                                        search[i].getLocalPart());
        }

        return value;
    
public static booleanisSOAP_ENC(java.lang.String s)
Returns true if SOAP_ENC Namespace.

param
s a string representing the URI to check
return
true if s matches a SOAP ENCODING namespace URI, false otherwise


                                                 
         
        for (int i=0; i<URIS_SOAP_ENC.length; i++) {
            if (URIS_SOAP_ENC[i].equals(s)) {
                return true;
            }
        }
        return false;
    
public static booleanisSOAP_ENV(java.lang.String s)
Returns true if the string is the SOAP_ENV Namespace.

param
s the string representation of a URI
return
true if s represents any of the supported soap envelope URI strings


                                                     
         
        for (int i=0; i<URIS_SOAP_ENV.length; i++) {
            if (URIS_SOAP_ENV[i].equals(s)) {
                return true;
            }
        }
        return false;
    
public static booleanisSchemaXSD(java.lang.String s)
Returns true if SchemaXSD Namespace.

param
s the string representing the URI to check
return
true if s represents the Schema XSD namespace, false otherwise


                                   
         
        for (int i=0; i<URIS_SCHEMA_XSD.length; i++) {
            if (URIS_SCHEMA_XSD[i].equals(s)) {
                return true;
            }
        }
        return false;
    
public static booleanisSchemaXSI(java.lang.String s)
Returns true if SchemaXSI Namespace.

param
s the string of the URI to check
return
true if s is a Schema XSI URI, false otherwise


                                     
         
        for (int i=0; i<URIS_SCHEMA_XSI.length; i++) {
            if (URIS_SCHEMA_XSI[i].equals(s)) {
                return true;
            }
        }
        return false;
    
public static booleanisWSDL(java.lang.String s)
Returns true if this is a WSDL Namespace.

param
s a string of a URI to check
return
true if s is a WSDL namespace URI, false otherwise


                                        
         
        for (int i=0; i<NS_URIS_WSDL.length; i++) {
            if (NS_URIS_WSDL[i].equals(s)) {
                return true;
            }
        }
        return false;
    
public static booleanisWSDLSOAP(java.lang.String s)
Returns true if s is a WSDL SOAP Namespace.

param
s a string of a URI to check
return
true if s matches any of the WSDL SOAP namepace URIs, false otherwise


                                                         
         
        for (int i=0; i<NS_URIS_WSDL_SOAP.length; i++) {
            if (NS_URIS_WSDL_SOAP[i].equals(s)) {
                return true;
            }
        }
        return false;