|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.InterceptSendToMockEndpointStrategy
public class InterceptSendToMockEndpointStrategy
A EndpointStrategy
which is capable of mocking endpoints.
CamelContext
beforehand.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected boolean |
matchPattern(String uri,
Endpoint endpoint,
String pattern)
Does the pattern match the endpoint? |
protected Producer |
onInterceptEndpoint(String uri,
Endpoint endpoint,
MockEndpoint mockEndpoint,
Producer mockProducer)
Callback when an endpoint was intercepted with the given mock endpoint |
Endpoint |
registerEndpoint(String uri,
Endpoint endpoint)
Register the endpoint. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public Endpoint registerEndpoint(String uri, Endpoint endpoint)
EndpointStrategy
registerEndpoint
in interface EndpointStrategy
uri
- uri of endpointendpoint
- the current endpoint to register
protected boolean matchPattern(String uri, Endpoint endpoint, String pattern)
uri
- the uriendpoint
- the endpointpattern
- the pattern
protected Producer onInterceptEndpoint(String uri, Endpoint endpoint, MockEndpoint mockEndpoint, Producer mockProducer)
uri
- the uriendpoint
- the endpointmockEndpoint
- the mocked endpointmockProducer
- the mock producer
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |