Class SOAPSpec


  • public abstract class SOAPSpec
    extends org.apache.axiom.testing.multiton.Multiton
    Describes the characteristics of a given SOAP version.
    • Field Detail

      • SOAP11

        public static final SOAPSpec SOAP11
      • SOAP12

        public static final SOAPSpec SOAP12
    • Method Detail

      • getName

        public final String getName()
      • getAltSpec

        public abstract SOAPSpec getAltSpec()
        Get the SOAPSpec instance for the other SOAP version. This is useful when constructing test cases that test SOAP version mismatches.
        Returns:
        the SOAPSpec instance for the other SOAP version
      • getContentType

        public final String getContentType()
      • getEnvelopeNamespaceURI

        public final String getEnvelopeNamespaceURI()
      • getEnvelopeQName

        public final QName getEnvelopeQName()
      • getHeaderQName

        public final QName getHeaderQName()
      • getBodyQName

        public final QName getBodyQName()
      • getFaultQName

        public final QName getFaultQName()
      • getFaultCodeQName

        public final QName getFaultCodeQName()
      • getFaultValueQName

        public final QName getFaultValueQName()
      • getFaultSubCodeQName

        public final QName getFaultSubCodeQName()
      • getFaultReasonQName

        public final QName getFaultReasonQName()
      • getFaultTextQName

        public final QName getFaultTextQName()
      • getFaultNodeQName

        public final QName getFaultNodeQName()
      • getFaultRoleQName

        public final QName getFaultRoleQName()
      • getFaultDetailQName

        public final QName getFaultDetailQName()
      • getBooleanLiterals

        public final BooleanLiteral[] getBooleanLiterals()
        Get the boolean literals recognized by this SOAP version. While SOAP 1.2 refers to the xs:boolean type and therefore recognizes true, false, 1 and 0, SOAP 1.1 only recognizes 1 and 0.
        Returns:
        an array with the recognized boolean literals
      • getInvalidBooleanLiterals

        public final String[] getInvalidBooleanLiterals()
        Produce a representative list of strings that are not valid lexical representations of booleans as defined by this SOAP version. The list in particular contains:
        • Boolean literals allowed by the other SOAP version, but that are not valid in this SOAP version.
        • A variant of a valid boolean literal that uses a different case and that is not valid, unless no such variant exists.
        • The string "invalid".
        Returns:
        an array of invalid boolean literals
      • getCanonicalRepresentation

        public abstract String getCanonicalRepresentation​(boolean value)
        Get the canonical representation for the given boolean value as specified by this SOAP version.
        Parameters:
        value - the boolean value
        Returns:
        the canonical representation
      • getNextRoleURI

        public final String getNextRoleURI()
      • getSenderFaultCode

        public final QName getSenderFaultCode()
      • getReceiverFaultCode

        public final QName getReceiverFaultCode()
      • getSchema

        public final Schema getSchema()
      • isAllowsElementsAfterBody

        public final boolean isAllowsElementsAfterBody()