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 TypeMethodDescriptionvoidconfigureExchange(org.apache.camel.Exchange exchange) voidconfigureProperties(Map<String, Object> options) org.apache.camel.AsyncProducerorg.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.Exchangeorg.apache.camel.ExchangecreateExchange(org.apache.camel.ExchangePattern pattern) org.apache.camel.PollingConsumerorg.apache.camel.Producerorg.apache.camel.ProcessorgetAfter()org.apache.camel.Processororg.apache.camel.CamelContextorg.apache.camel.Componentorg.apache.camel.ExchangePatternorg.apache.camel.EndpointbooleanbooleanbooleanisSkip()voidsetAfter(org.apache.camel.Processor after) voidsetBefore(org.apache.camel.Processor before) voidsetCamelContext(org.apache.camel.CamelContext context) voidsetComponent(org.apache.camel.Component component) voidsetSkip(boolean skip) voidshutdown()voidstart()voidstop()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponentMethods inherited from interface org.apache.camel.Endpoint
isSingletonProducerMethods 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:
setBeforein interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
setAfter
public void setAfter(org.apache.camel.Processor after) - Specified by:
setAfterin interfaceorg.apache.camel.spi.InterceptSendToEndpoint
-
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
- Specified by:
getEndpointUriin interfaceorg.apache.camel.Endpoint
-
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()- Specified by:
getExchangePatternin interfaceorg.apache.camel.Endpoint
-
getEndpointBaseUri
- Specified by:
getEndpointBaseUriin interfaceorg.apache.camel.Endpoint
-
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
-
configureExchange
public void configureExchange(org.apache.camel.Exchange exchange) - Specified by:
configureExchangein interfaceorg.apache.camel.Endpoint
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.Endpoint
-
setComponent
public void setComponent(org.apache.camel.Component component) - Specified by:
setComponentin interfaceorg.apache.camel.ComponentAware
-
getComponent
public org.apache.camel.Component getComponent()- Specified by:
getComponentin interfaceorg.apache.camel.ComponentAware
-
createProducer
- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createAsyncProducer
- 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
- Specified by:
createPollingConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
configureProperties
- 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
-
toString
-