Class MTOMAssertion

  • All Implemented Interfaces:
    org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent
    Direct Known Subclasses:
    MTOM10Assertion, MTOM11Assertion

    public abstract class MTOMAssertion
    extends Object
    implements org.apache.neethi.Assertion
    This abstract class specifies the common features of a MTOM assertion.
    • Field Detail

      • optional

        protected boolean optional
        Specifies if the MTOM assertion is optional. The request can be MTOMised or non-MTOMised,
        but the response will be MTOMised only if request is MTOMised.
    • Constructor Detail

      • MTOMAssertion

        public MTOMAssertion()
    • Method Detail

      • isOptional

        public boolean isOptional()
        Checks if the MTOM assertion is optional. The request can be MTOMised or non-MTOMised,
        but the response will be MTOMised only if request is MTOMised.
        Specified by:
        isOptional in interface org.apache.neethi.Assertion
        Returns:
        true if the MTOM assertion is optional, otherwise returns false.
      • setOptional

        public void setOptional​(boolean isOptional)
        Sets the optional parameter.
        Parameters:
        isOptional - sets if the MTOM assertion is optional or not. If set to true
        then if the request is MTOMised then the response should be MTOMised, too.
      • isIgnorable

        public boolean isIgnorable()
        Specified by:
        isIgnorable in interface org.apache.neethi.Assertion