Package org.apache.axis2.policy.model
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 booleanoptionalSpecifies if the MTOM assertion is optional.
-
Constructor Summary
Constructors Constructor Description MTOMAssertion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisIgnorable()booleanisOptional()Checks if the MTOM assertion is optional.voidsetOptional(boolean isOptional)Sets theoptionalparameter.
-
-
-
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:
isOptionalin interfaceorg.apache.neethi.Assertion- Returns:
trueif the MTOM assertion is optional, otherwise returnsfalse.
-
setOptional
public void setOptional(boolean isOptional)
Sets theoptionalparameter.- Parameters:
isOptional- sets if the MTOM assertion is optional or not. If set totruethen if the request is MTOMised then the response should be MTOMised, too.
-
isIgnorable
public boolean isIgnorable()
- Specified by:
isIgnorablein interfaceorg.apache.neethi.Assertion
-
-