Package org.apache.synapse
Interface ExtendedSynapseHandler
-
- All Superinterfaces:
SynapseHandler
- All Known Implementing Classes:
AbstractExtendedSynapseHandler
public interface ExtendedSynapseHandler extends SynapseHandler
Interface For Extended Synapse Handlers Synapse Handlers are invoked when a message received to the mediation engine or a message sent out from the engine. When a message received to the engine, handles are invoked just before the mediation flow When a message is sent out from the engine, handlers are invoked just after the mediation flow There are two requests coming into the engine and two responses going out from the engine. For all four messages relevant method is invoked
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handleArtifactDeployment(String artifactName, String artifactType, String startTime)
Handle artifact deployment.boolean
handleArtifactUnDeployment(String artifactName, String artifactType, String unDeployTime)
Handle artifact undeployment.boolean
handleError(MessageContext synCtx)
Handle error requests coming to the synapse engine.boolean
handleServerInit()
Handle server startup.boolean
handleServerShutDown()
Handle server shut down.-
Methods inherited from interface org.apache.synapse.SynapseHandler
addProperty, getName, getProperties, handleRequestInFlow, handleRequestOutFlow, handleResponseInFlow, handleResponseOutFlow, setName
-
-
-
-
Method Detail
-
handleServerInit
boolean handleServerInit()
Handle server startup.
-
handleServerShutDown
boolean handleServerShutDown()
Handle server shut down.
-
handleArtifactDeployment
boolean handleArtifactDeployment(String artifactName, String artifactType, String startTime)
Handle artifact deployment.- Parameters:
artifactName
- name of the artifact deployedartifactType
- type of the artifact deployedstartTime
- artifact deployed time- Returns:
- whether mediation flow should continue
-
handleArtifactUnDeployment
boolean handleArtifactUnDeployment(String artifactName, String artifactType, String unDeployTime)
Handle artifact undeployment.- Parameters:
artifactName
- name of the artifact deployedartifactType
- type of the artifact deployedunDeployTime
- artifact undeployment time- Returns:
- whether mediation flow should continue
-
handleError
boolean handleError(MessageContext synCtx)
Handle error requests coming to the synapse engine.- Parameters:
synCtx
- outgoing response message context- Returns:
- whether mediation flow should continue
-
-