Interface AutoMockInterceptStrategy


public interface AutoMockInterceptStrategy
Strategy for intercepting sending messages to endpoints. The strategy can match by uri or pattern, and determine whether to skip sending the message to the original intended endpoints. This is used by camel-test for the auto mocking feature (such as @MockEndpoint). See the org.apache.camel.processor.AutoMockInterceptProducer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Intercept sending to the uri or uri pattern.
    boolean
    Whether to skip sending to the original endpoint.
    void
    setPattern(String pattern)
    Intercept sending to the uri or uri pattern.
    void
    setSkip(boolean skip)
    Whether to skip sending to the original endpoint.
  • Method Details

    • setPattern

      void setPattern(String pattern)
      Intercept sending to the uri or uri pattern.
    • getPattern

      String getPattern()
      Intercept sending to the uri or uri pattern.
    • isSkip

      boolean isSkip()
      Whether to skip sending to the original endpoint.
    • setSkip

      void setSkip(boolean skip)
      Whether to skip sending to the original endpoint.