org.apache.axis2.mtompolicy
Class MTOMInHandler

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

public class MTOMInHandler
extends AbstractHandler

This class does a MTOM validation of the message. It checks if it should be MTOMised, or
if the message is compliant with the MTOM policy 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
MTOMInHandler()
           
 
Method Summary
 Handler.InvocationResponse invoke(MessageContext msgCtx)
          Checks if the message should be MTOMised.
 
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

MTOMInHandler

public MTOMInHandler()
Method Detail

invoke

public Handler.InvocationResponse invoke(MessageContext msgCtx)
                                  throws AxisFault
Checks if the message should be MTOMised. If it is not but the policy states that it should be
then an AxisFault is thrown.

Parameters:
msgCtx - the MessageContext
Returns:
An InvocationResponse that indicates what the next step in the message processing should be.
Throws:
AxisFault - if the message is not MTOMised, but the policy states so.


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