org.apache.synapse.handler
Class SynapseInHandler

java.lang.Object
  extended by org.apache.axis2.handlers.AbstractHandler
      extended by org.apache.synapse.handler.SynapseInHandler
All Implemented Interfaces:
Handler

public class SynapseInHandler
extends AbstractHandler

This is the InHandler which injects the Axis2MC in to Synapse after converting the message context to a SynapseMC


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
SynapseInHandler()
           
 
Method Summary
 Handler.InvocationResponse invoke(MessageContext messageContext)
          This method will inject the message into Synapse after creating the SynapseMC from the Axis2MC and after the mediation if synapse lets the message to flow through this will let the message to flow and if not aborts the message
 
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

SynapseInHandler

public SynapseInHandler()
Method Detail

invoke

public Handler.InvocationResponse invoke(MessageContext messageContext)
                                  throws AxisFault
This method will inject the message into Synapse after creating the SynapseMC from the Axis2MC and after the mediation if synapse lets the message to flow through this will let the message to flow and if not aborts the message

Parameters:
messageContext - - Axis2MC to be mediated using Synapse
Returns:
InvocationResponse.CONTINUE if Synapse lets the message to flow and InvocationResponse.ABORT if not
Throws:
AxisFault - - incase of a failure in mediation of initiation of the mediation


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.