Interface MockSendToEndpointStrategyFactory


public interface MockSendToEndpointStrategyFactory
Factory for intercepting sending to endpoint pattern and sending to mock component. This requires having camel-mock on the classpath.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    mock(String pattern, boolean skip)
    Mock sending to endpoint
  • Field Details

  • Method Details

    • mock

      EndpointStrategy mock(String pattern, boolean skip)
      Mock sending to endpoint
      Parameters:
      pattern - pattern for intercepting (null or * = intercept all, otherwise its an text pattern (and regexp).
      skip - whether to skip sending to original endpoint (only to mock endpoint).
      Returns:
      the endpoint strategy that intercepts.