Package org.apache.synapse.handler
Class SynapseModule
- java.lang.Object
-
- org.apache.synapse.handler.SynapseModule
-
- All Implemented Interfaces:
org.apache.axis2.modules.Module
public class SynapseModule extends Object implements org.apache.axis2.modules.Module
This will be the Module class for the Synapse handler based mediation inside axis2 server. This will just set the default system property of SYNAPSE_XML to the repository/conf/synapse.xml in the axis2 servers repository and call the normal Synapse startup.
-
-
Constructor Summary
Constructors Constructor Description SynapseModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyPolicy(org.apache.neethi.Policy policy, org.apache.axis2.description.AxisDescription axisDescription)
boolean
canSupportAssertion(org.apache.neethi.Assertion assertion)
void
engageNotify(org.apache.axis2.description.AxisDescription axisDescription)
void
init(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.AxisModule axisModule)
This method will call the normal initiation after setting the SYNAPSE_XML file to get from the axis2 repository/conf foldervoid
shutdown(org.apache.axis2.context.ConfigurationContext configurationContext)
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.AxisModule axisModule) throws org.apache.axis2.AxisFault
This method will call the normal initiation after setting the SYNAPSE_XML file to get from the axis2 repository/conf folder- Specified by:
init
in interfaceorg.apache.axis2.modules.Module
- Parameters:
configurationContext
- - ConfigurationContext of the Axis2 envaxisModule
- - AxisModule describing handler initializationModule of Synapse- Throws:
org.apache.axis2.AxisFault
- - in-case of a failure in initiation
-
engageNotify
public void engageNotify(org.apache.axis2.description.AxisDescription axisDescription) throws org.apache.axis2.AxisFault
- Specified by:
engageNotify
in interfaceorg.apache.axis2.modules.Module
- Throws:
org.apache.axis2.AxisFault
-
canSupportAssertion
public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
- Specified by:
canSupportAssertion
in interfaceorg.apache.axis2.modules.Module
-
applyPolicy
public void applyPolicy(org.apache.neethi.Policy policy, org.apache.axis2.description.AxisDescription axisDescription) throws org.apache.axis2.AxisFault
- Specified by:
applyPolicy
in interfaceorg.apache.axis2.modules.Module
- Throws:
org.apache.axis2.AxisFault
-
shutdown
public void shutdown(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault
- Specified by:
shutdown
in interfaceorg.apache.axis2.modules.Module
- Throws:
org.apache.axis2.AxisFault
-
-