Class MTOMAssertion

java.lang.Object
org.apache.axis2.policy.model.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Specifies if the MTOM assertion is optional.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the MTOM assertion is optional.
    void
    setOptional(boolean isOptional)
    Sets the optional parameter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.neethi.Assertion

    getName, normalize, serialize

    Methods inherited from interface org.apache.neethi.PolicyComponent

    equal, getType
  • Field Details

    • 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 Details

    • MTOMAssertion

      public MTOMAssertion()
  • Method Details

    • 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.