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
This abstract class specifies the common features of a MTOM assertion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanSpecifies if the MTOM assertion is optional. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the MTOM assertion is optional.voidsetOptional(boolean isOptional) Sets theoptionalparameter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.neethi.Assertion
getName, normalize, serializeMethods inherited from interface org.apache.neethi.PolicyComponent
equal, getType
-
Field Details
-
optional
protected boolean optionalSpecifies 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:
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.
-