Package org.apache.camel.spi
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 TypeMethodDescriptionIntercept sending to the uri or uri pattern.booleanisSkip()Whether to skip sending to the original endpoint.voidsetPattern(String pattern) Intercept sending to the uri or uri pattern.voidsetSkip(boolean skip) Whether to skip sending to the original endpoint.
-
Method Details
-
setPattern
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.
-