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.Processor |
getAfter() |
org.apache.camel.Processor |
getBefore() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getEndpointKey() |
String |
getEndpointUri() |
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() |
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 setBefore(org.apache.camel.Processor before)
public void setAfter(org.apache.camel.Processor after)
public void setSkip(boolean skip)
public org.apache.camel.Processor getBefore()
getBefore
in interface org.apache.camel.spi.InterceptSendToEndpoint
public org.apache.camel.Processor getAfter()
getAfter
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()
start
in interface org.apache.camel.Service
public void stop()
stop
in interface org.apache.camel.Service
public void shutdown()
shutdown
in interface org.apache.camel.ShutdownableService
Apache Camel