org.apache.axis2.mtompolicy
Class MTOMOutHandler

java.lang.Object
  extended by org.apache.axis2.handlers.AbstractHandler
      extended by org.apache.axis2.mtompolicy.MTOMOutHandler
All Implemented Interfaces:
Handler

public class MTOMOutHandler
extends AbstractHandler

This out handler does a check of the effective policy set. Based on that the corresponding MTOM property
value is set.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
Handler.InvocationResponse
 
Field Summary
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
MTOMOutHandler()
           
 
Method Summary
 Handler.InvocationResponse invoke(MessageContext msgCtx)
          Checks the effective policy set and based on it the enableMTOM is set to the appropriate value.
E.g.
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTOMOutHandler

public MTOMOutHandler()
Method Detail

invoke

public Handler.InvocationResponse invoke(MessageContext msgCtx)
                                  throws AxisFault
Checks the effective policy set and based on it the enableMTOM is set to the appropriate value.
E.g. if the policy states that MTOM is optional then the enableMTOM is set to this value.

Parameters:
msgCtx - the MessageContext
Returns:
An InvocationResponse that indicates what the next step in the message processing should be.
Throws:
AxisFault


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