Package org.apache.camel.support
Class DefaultInterceptSendToEndpoint
java.lang.Object
org.apache.camel.support.DefaultInterceptSendToEndpoint
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.ComponentAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.InterceptSendToEndpoint
public class DefaultInterceptSendToEndpoint
extends Object
implements org.apache.camel.spi.InterceptSendToEndpoint, org.apache.camel.ShutdownableService
This is an endpoint when sending to it, is intercepted and is routed in a detour (before and optionally after).
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultInterceptSendToEndpoint
(org.apache.camel.Endpoint destination, boolean skip) Intercepts sending to the given endpoint -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureExchange
(org.apache.camel.Exchange exchange) void
configureProperties
(Map<String, Object> options) org.apache.camel.AsyncProducer
org.apache.camel.Consumer
createConsumer
(org.apache.camel.Processor processor) org.apache.camel.Exchange
org.apache.camel.Exchange
createExchange
(org.apache.camel.ExchangePattern pattern) org.apache.camel.PollingConsumer
org.apache.camel.Producer
org.apache.camel.Processor
getAfter()
org.apache.camel.Processor
org.apache.camel.CamelContext
org.apache.camel.Component
org.apache.camel.ExchangePattern
org.apache.camel.Endpoint
boolean
boolean
boolean
isSkip()
void
setAfter
(org.apache.camel.Processor after) void
setBefore
(org.apache.camel.Processor before) void
setCamelContext
(org.apache.camel.CamelContext context) void
setComponent
(org.apache.camel.Component component) void
setSkip
(boolean skip) void
shutdown()
void
start()
void
stop()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.ComponentAware
getComponent
Methods inherited from interface org.apache.camel.Endpoint
isSingletonProducer
Methods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
DefaultInterceptSendToEndpoint
public DefaultInterceptSendToEndpoint(org.apache.camel.Endpoint destination, boolean skip) Intercepts sending to the given endpoint- Parameters:
destination
- the original endpointskip
- true to skip sending after the detour to the original endpoint
-
-
Method Details
-
setBefore
public void setBefore(org.apache.camel.Processor before) - Specified by:
setBefore
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
setAfter
public void setAfter(org.apache.camel.Processor after) - Specified by:
setAfter
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
setSkip
public void setSkip(boolean skip) -
getBefore
public org.apache.camel.Processor getBefore()- Specified by:
getBefore
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getAfter
public org.apache.camel.Processor getAfter()- Specified by:
getAfter
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getOriginalEndpoint
public org.apache.camel.Endpoint getOriginalEndpoint()- Specified by:
getOriginalEndpoint
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
isSkip
public boolean isSkip()- Specified by:
isSkip
in interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getEndpointUri
- Specified by:
getEndpointUri
in interfaceorg.apache.camel.Endpoint
-
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()- Specified by:
getExchangePattern
in interfaceorg.apache.camel.Endpoint
-
getEndpointBaseUri
- Specified by:
getEndpointBaseUri
in interfaceorg.apache.camel.Endpoint
-
getEndpointKey
- Specified by:
getEndpointKey
in interfaceorg.apache.camel.Endpoint
-
createExchange
public org.apache.camel.Exchange createExchange()- Specified by:
createExchange
in interfaceorg.apache.camel.Endpoint
-
createExchange
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern) - Specified by:
createExchange
in interfaceorg.apache.camel.Endpoint
-
configureExchange
public void configureExchange(org.apache.camel.Exchange exchange) - Specified by:
configureExchange
in interfaceorg.apache.camel.Endpoint
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.Endpoint
-
setComponent
public void setComponent(org.apache.camel.Component component) - Specified by:
setComponent
in interfaceorg.apache.camel.ComponentAware
-
getComponent
public org.apache.camel.Component getComponent()- Specified by:
getComponent
in interfaceorg.apache.camel.ComponentAware
-
createProducer
- Specified by:
createProducer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
createAsyncProducer
- Specified by:
createAsyncProducer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Specified by:
createConsumer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
createPollingConsumer
- Specified by:
createPollingConsumer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
configureProperties
- Specified by:
configureProperties
in interfaceorg.apache.camel.Endpoint
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext context) - Specified by:
setCamelContext
in interfaceorg.apache.camel.Endpoint
-
isLenientProperties
public boolean isLenientProperties()- Specified by:
isLenientProperties
in interfaceorg.apache.camel.Endpoint
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.apache.camel.IsSingleton
-
start
public void start()- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.camel.Service
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceorg.apache.camel.ShutdownableService
-
toString
-