org.apache.axis2.policy.model
Class MTOMAssertion

java.lang.Object
  extended by 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
protected  boolean optional
          Specifies if the MTOM assertion is optional.
 
Constructor Summary
MTOMAssertion()
           
 
Method Summary
 boolean isIgnorable()
           
 boolean isOptional()
          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 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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.