Package org.apache.camel.impl.engine
Class DefaultInterceptSendToEndpoint
- java.lang.Object
-
- org.apache.camel.impl.engine.DefaultInterceptSendToEndpoint
-
- All Implemented Interfaces:
AutoCloseable,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
Constructors Constructor Description DefaultInterceptSendToEndpoint(org.apache.camel.Endpoint destination, boolean skip)Intercepts sending to the given endpoint
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureProperties(Map<String,Object> options)org.apache.camel.AsyncProducercreateAsyncProducer()org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor)org.apache.camel.ExchangecreateExchange()org.apache.camel.ExchangecreateExchange(org.apache.camel.ExchangePattern pattern)org.apache.camel.PollingConsumercreatePollingConsumer()org.apache.camel.ProducercreateProducer()org.apache.camel.ProcessorgetAfter()org.apache.camel.ProcessorgetBefore()org.apache.camel.CamelContextgetCamelContext()StringgetEndpointBaseUri()StringgetEndpointKey()StringgetEndpointUri()org.apache.camel.EndpointgetOriginalEndpoint()booleanisLenientProperties()booleanisSingleton()booleanisSkip()voidsetAfter(org.apache.camel.Processor after)voidsetBefore(org.apache.camel.Processor before)voidsetCamelContext(org.apache.camel.CamelContext context)voidsetSkip(boolean skip)voidshutdown()voidstart()voidstop()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
setBefore
public void setBefore(org.apache.camel.Processor before)
-
setAfter
public void setAfter(org.apache.camel.Processor after)
-
setSkip
public void setSkip(boolean skip)
-
getBefore
public org.apache.camel.Processor getBefore()
- Specified by:
getBeforein interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getAfter
public org.apache.camel.Processor getAfter()
- Specified by:
getAfterin interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getOriginalEndpoint
public org.apache.camel.Endpoint getOriginalEndpoint()
- Specified by:
getOriginalEndpointin interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
isSkip
public boolean isSkip()
- Specified by:
isSkipin interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
getEndpointUri
public String getEndpointUri()
- Specified by:
getEndpointUriin interfaceorg.apache.camel.Endpoint
-
getEndpointBaseUri
public String getEndpointBaseUri()
- Specified by:
getEndpointBaseUriin interfaceorg.apache.camel.Endpoint
-
getEndpointKey
public String getEndpointKey()
- Specified by:
getEndpointKeyin interfaceorg.apache.camel.Endpoint
-
createExchange
public org.apache.camel.Exchange createExchange()
- Specified by:
createExchangein interfaceorg.apache.camel.Endpoint
-
createExchange
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
- Specified by:
createExchangein interfaceorg.apache.camel.Endpoint
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.Endpoint
-
createProducer
public org.apache.camel.Producer createProducer() throws Exception- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createAsyncProducer
public org.apache.camel.AsyncProducer createAsyncProducer() throws Exception- Specified by:
createAsyncProducerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception- Specified by:
createConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createPollingConsumer
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception- Specified by:
createPollingConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
configureProperties
public void configureProperties(Map<String,Object> options)
- Specified by:
configurePropertiesin interfaceorg.apache.camel.Endpoint
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext context)
- Specified by:
setCamelContextin interfaceorg.apache.camel.Endpoint
-
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientPropertiesin interfaceorg.apache.camel.Endpoint
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.apache.camel.IsSingleton
-
start
public void start()
- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.apache.camel.ShutdownableService
-
-