Package org.apache.camel.spi
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EndpointStrategy
mock(String pattern, boolean skip)
Mock sending to endpoint
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-