Package org.apache.camel.support
Class DefaultInterceptSendToEndpoint
- java.lang.Object
-
- org.apache.camel.support.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 void
configureExchange(org.apache.camel.Exchange exchange)
void
configureProperties(Map<String,Object> options)
org.apache.camel.AsyncProducer
createAsyncProducer()
org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
org.apache.camel.Exchange
createExchange()
org.apache.camel.Exchange
createExchange(org.apache.camel.ExchangePattern pattern)
org.apache.camel.PollingConsumer
createPollingConsumer()
org.apache.camel.Producer
createProducer()
org.apache.camel.Processor
getAfter()
org.apache.camel.Processor
getBefore()
org.apache.camel.CamelContext
getCamelContext()
String
getEndpointBaseUri()
String
getEndpointKey()
String
getEndpointUri()
org.apache.camel.ExchangePattern
getExchangePattern()
org.apache.camel.Endpoint
getOriginalEndpoint()
boolean
isLenientProperties()
boolean
isSingleton()
boolean
isSkip()
void
setAfter(org.apache.camel.Processor after)
void
setBefore(org.apache.camel.Processor before)
void
setCamelContext(org.apache.camel.CamelContext context)
void
setSkip(boolean skip)
void
shutdown()
void
start()
void
stop()
String
toString()
-
-
-
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)
- 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
public String 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
public String getEndpointBaseUri()
- Specified by:
getEndpointBaseUri
in interfaceorg.apache.camel.Endpoint
-
getEndpointKey
public String 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
-
createProducer
public org.apache.camel.Producer createProducer() throws Exception
- Specified by:
createProducer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
createAsyncProducer
public org.apache.camel.AsyncProducer createAsyncProducer() throws Exception
- 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
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception
- Specified by:
createPollingConsumer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
configureProperties
public void configureProperties(Map<String,Object> options)
- 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
-
-