Class TestSourceInterceptor

  • All Implemented Interfaces:
    org.mule.runtime.api.interception.SourceInterceptor

    public class TestSourceInterceptor
    extends Object
    implements org.mule.runtime.api.interception.SourceInterceptor
    Doesn't let you modify the event before sending to flow but can let you modify event before flow response is sent. Could help in return the trace context
    • Constructor Detail

      • TestSourceInterceptor

        public TestSourceInterceptor()
    • Method Detail

      • beforeCallback

        public void beforeCallback​(org.mule.runtime.api.component.location.ComponentLocation location,
                                   Map<String,​org.mule.runtime.api.interception.ProcessorParameterValue> parameters,
                                   org.mule.runtime.api.interception.InterceptionEvent event)
        Specified by:
        beforeCallback in interface org.mule.runtime.api.interception.SourceInterceptor
      • afterCallback

        public void afterCallback​(org.mule.runtime.api.component.location.ComponentLocation location,
                                  org.mule.runtime.api.interception.InterceptionEvent event,
                                  Optional<Throwable> thrown)
        Specified by:
        afterCallback in interface org.mule.runtime.api.interception.SourceInterceptor