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 boolean
optional
Specifies 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 boolean
isIgnorable()
boolean
isOptional()
Checks if the MTOM assertion is optional.void
setOptional(boolean isOptional)
Sets theoptional
parameter.
-
-
-
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 interfaceorg.apache.neethi.Assertion
- Returns:
true
if the MTOM assertion is optional, otherwise returnsfalse
.
-
setOptional
public void setOptional(boolean isOptional)
Sets theoptional
parameter.- Parameters:
isOptional
- sets if the MTOM assertion is optional or not. If set totrue
then if the request is MTOMised then the response should be MTOMised, too.
-
isIgnorable
public boolean isIgnorable()
- Specified by:
isIgnorable
in interfaceorg.apache.neethi.Assertion
-
-