public class InterceptSendToMockEndpointStrategy extends Object implements EndpointStrategy
EndpointStrategy
which is capable of mocking endpoints.
This strategy will only apply when new endpoints is being created. If you want to apply
existing endpoints, you will have to remove them from the CamelContext
beforehand.Constructor and Description |
---|
InterceptSendToMockEndpointStrategy()
Mock all endpoints.
|
InterceptSendToMockEndpointStrategy(String pattern)
Mock endpoints based on the given pattern.
|
InterceptSendToMockEndpointStrategy(String pattern,
boolean skip)
Mock endpoints based on the given pattern.
|
public InterceptSendToMockEndpointStrategy()
public InterceptSendToMockEndpointStrategy(String pattern)
pattern
- the pattern.EndpointHelper.matchEndpoint(org.apache.camel.CamelContext, String, String)
public InterceptSendToMockEndpointStrategy(String pattern, boolean skip)
pattern
- the pattern.skip
- true to skip sending after the detour to the original endpointEndpointHelper.matchEndpoint(org.apache.camel.CamelContext, String, String)
public Endpoint registerEndpoint(String uri, Endpoint endpoint)
EndpointStrategy
registerEndpoint
in interface EndpointStrategy
uri
- uri of endpointendpoint
- the current endpoint to registerApache Camel