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 voidapplyPolicy(org.apache.neethi.Policy policy, org.apache.axis2.description.AxisDescription axisDescription)booleancanSupportAssertion(org.apache.neethi.Assertion assertion)voidengageNotify(org.apache.axis2.description.AxisDescription axisDescription)voidinit(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 foldervoidshutdown(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.AxisFaultThis method will call the normal initiation after setting the SYNAPSE_XML file to get from the axis2 repository/conf folder- Specified by:
initin 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:
engageNotifyin interfaceorg.apache.axis2.modules.Module- Throws:
org.apache.axis2.AxisFault
-
canSupportAssertion
public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
- Specified by:
canSupportAssertionin 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:
applyPolicyin 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:
shutdownin interfaceorg.apache.axis2.modules.Module- Throws:
org.apache.axis2.AxisFault
-
-