Package org.apache.synapse.debug.utils
Class APIDebugUtil
- java.lang.Object
-
- org.apache.synapse.debug.utils.APIDebugUtil
-
public class APIDebugUtil extends Object
Utility class that handle persisting API related breakpoint/skip information at mediator level as we maintain debug related information at mediator level
-
-
Constructor Summary
Constructors Constructor Description APIDebugUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringlogMediatorPosition(SynapseMediationFlowPoint flowPoint)static voidregisterAPISequenceMediationFlowBreakPoint(SynapseConfiguration synCfg, String mapping, String method, String sequenceType, String apiKey, int[] position, boolean registerMode)Registers/Un-registers a breakpoint, point where mediation flow get suspendedstatic voidregisterAPISequenceMediationFlowSkip(SynapseConfiguration synCfg, String mapping, String method, String seqType, String apiKey, int[] position, boolean registerMode)Registers/Un-registers a skip, point where mediator disables from the mediation flow
-
-
-
Method Detail
-
registerAPISequenceMediationFlowBreakPoint
public static void registerAPISequenceMediationFlowBreakPoint(SynapseConfiguration synCfg, String mapping, String method, String sequenceType, String apiKey, int[] position, boolean registerMode)
Registers/Un-registers a breakpoint, point where mediation flow get suspended- Parameters:
synCfg- Synapse configurationmapping- either resource url-mapping or uri-templatemethod- resource http methodsequenceType- Synapse sequence typeapiKey- name of the APIposition- array of integers that uniquely specifies a point in mediation routeregisterMode- specify whether register or un register
-
registerAPISequenceMediationFlowSkip
public static void registerAPISequenceMediationFlowSkip(SynapseConfiguration synCfg, String mapping, String method, String seqType, String apiKey, int[] position, boolean registerMode)
Registers/Un-registers a skip, point where mediator disables from the mediation flow- Parameters:
synCfg- Synapse configurationmapping- either resource url-mapping or uri-templatemethod- resource http methodseqType- Synapse sequence typeapiKey- name of the APIposition- array of integers that uniquely specifies a point in mediation routeregisterMode- specify whether register or un register
-
logMediatorPosition
protected static String logMediatorPosition(SynapseMediationFlowPoint flowPoint)
-
-