Class 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 Detail

      • APIDebugUtil

        public APIDebugUtil()
    • 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 configuration
        mapping - either resource url-mapping or uri-template
        method - resource http method
        sequenceType - Synapse sequence type
        apiKey - name of the API
        position - array of integers that uniquely specifies a point in mediation route
        registerMode - 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 configuration
        mapping - either resource url-mapping or uri-template
        method - resource http method
        seqType - Synapse sequence type
        apiKey - name of the API
        position - array of integers that uniquely specifies a point in mediation route
        registerMode - specify whether register or un register