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
     
  • Method Summary

    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 folder
    void
    shutdown(org.apache.axis2.context.ConfigurationContext configurationContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SynapseModule

      public SynapseModule()
  • Method Details

    • 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 interface org.apache.axis2.modules.Module
      Parameters:
      configurationContext - - ConfigurationContext of the Axis2 env
      axisModule - - 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 interface org.apache.axis2.modules.Module
      Throws:
      org.apache.axis2.AxisFault
    • canSupportAssertion

      public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
      Specified by:
      canSupportAssertion in interface org.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 interface org.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 interface org.apache.axis2.modules.Module
      Throws:
      org.apache.axis2.AxisFault