public class DefaultInterceptSendToEndpoint extends Object implements org.apache.camel.spi.InterceptSendToEndpoint, org.apache.camel.ShutdownableService
Constructor and Description |
---|
DefaultInterceptSendToEndpoint(org.apache.camel.Endpoint destination,
boolean skip)
Intercepts sending to the given endpoint
|
Modifier and Type | Method and Description |
---|---|
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.CamelContext |
getCamelContext() |
org.apache.camel.Processor |
getDetour() |
String |
getEndpointKey() |
String |
getEndpointUri() |
org.apache.camel.Endpoint |
getOriginalEndpoint() |
boolean |
isLenientProperties() |
boolean |
isSingleton() |
boolean |
isSkip() |
void |
setCamelContext(org.apache.camel.CamelContext context) |
void |
setDetour(org.apache.camel.Processor detour) |
void |
shutdown() |
void |
start() |
void |
stop() |
String |
toString() |
public DefaultInterceptSendToEndpoint(org.apache.camel.Endpoint destination, boolean skip)
destination
- the original endpointskip
- true to skip sending after the detour to the original endpointpublic void setDetour(org.apache.camel.Processor detour)
public org.apache.camel.Processor getDetour()
getDetour
in interface org.apache.camel.spi.InterceptSendToEndpoint
public org.apache.camel.Endpoint getOriginalEndpoint()
getOriginalEndpoint
in interface org.apache.camel.spi.InterceptSendToEndpoint
public boolean isSkip()
isSkip
in interface org.apache.camel.spi.InterceptSendToEndpoint
public String getEndpointUri()
getEndpointUri
in interface org.apache.camel.Endpoint
public String getEndpointKey()
getEndpointKey
in interface org.apache.camel.Endpoint
public org.apache.camel.Exchange createExchange()
createExchange
in interface org.apache.camel.Endpoint
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
createExchange
in interface org.apache.camel.Endpoint
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.Endpoint
public org.apache.camel.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.AsyncProducer createAsyncProducer() throws Exception
createAsyncProducer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
Exception
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception
createPollingConsumer
in interface org.apache.camel.Endpoint
Exception
public void configureProperties(Map<String,Object> options)
configureProperties
in interface org.apache.camel.Endpoint
public void setCamelContext(org.apache.camel.CamelContext context)
setCamelContext
in interface org.apache.camel.Endpoint
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.Endpoint
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
public void start() throws Exception
start
in interface org.apache.camel.Service
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.Service
Exception
public void shutdown() throws Exception
shutdown
in interface org.apache.camel.ShutdownableService
Exception
Apache Camel