Package org.apache.camel.processor
Class InterceptSendToEndpointCallback
java.lang.Object
org.apache.camel.processor.InterceptSendToEndpointCallback
- All Implemented Interfaces:
org.apache.camel.spi.EndpointStrategy
public class InterceptSendToEndpointCallback
extends Object
implements org.apache.camel.spi.EndpointStrategy
Endpoint strategy used by intercept send to endpoint.
-
Constructor Summary
ConstructorDescriptionInterceptSendToEndpointCallback
(org.apache.camel.CamelContext camelContext, org.apache.camel.Processor before, org.apache.camel.Processor after, String matchURI, boolean skip) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
matchPattern
(String uri, String pattern) Does the uri match the pattern.org.apache.camel.Endpoint
registerEndpoint
(String uri, org.apache.camel.Endpoint endpoint)
-
Constructor Details
-
InterceptSendToEndpointCallback
public InterceptSendToEndpointCallback(org.apache.camel.CamelContext camelContext, org.apache.camel.Processor before, org.apache.camel.Processor after, String matchURI, boolean skip)
-
-
Method Details
-
registerEndpoint
- Specified by:
registerEndpoint
in interfaceorg.apache.camel.spi.EndpointStrategy
-
matchPattern
Does the uri match the pattern.- Parameters:
uri
- the uripattern
- the pattern, which can be an endpoint uri as well- Returns:
- true if matched and we should intercept, false if not matched, and not intercept.
-