Package org.apache.synapse.handler
Class SynapseOutHandler
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.synapse.handler.SynapseOutHandler
- All Implemented Interfaces:
org.apache.axis2.engine.Handler
public class SynapseOutHandler
extends org.apache.axis2.handlers.AbstractHandler
This is the OutHandler 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
org.apache.axis2.engine.Handler.InvocationResponse -
Field Summary
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.axis2.engine.Handler.InvocationResponseinvoke(org.apache.axis2.context.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 messageMethods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
-
Constructor Details
-
SynapseOutHandler
public SynapseOutHandler()
-
-
Method Details
-
invoke
public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.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:
org.apache.axis2.AxisFault- - incase of a failure in mediation of initiation of the mediation
-