|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.InterceptSendToEndpoint
public class InterceptSendToEndpoint
This is an endpoint when sending to it, is intercepted and is routed in a detour
| Constructor Summary | |
|---|---|
InterceptSendToEndpoint(Endpoint destination,
boolean skip)
Intercepts sending to the given endpoint |
|
| Method Summary | |
|---|---|
void |
configureProperties(Map options)
Configure properties on this endpoint. |
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Exchange |
createExchange()
Create a new exchange for communicating with this endpoint |
Exchange |
createExchange(Exchange exchange)
Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values of the headers and messages |
Exchange |
createExchange(ExchangePattern pattern)
Create a new exchange for communicating with this endpoint with the specified ExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange |
PollingConsumer |
createPollingConsumer()
Creates a new Polling Consumer so that the caller can poll message exchanges from the consumer using PollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor) |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
CamelContext |
getCamelContext()
Returns the context which created the endpoint |
Endpoint |
getDelegate()
|
String |
getEndpointKey()
Returns a string key of this endpoint. |
String |
getEndpointUri()
Returns the string representation of the endpoint URI |
boolean |
isLenientProperties()
Should all properties be known or does the endpoint allow unknown options? lenient = false means that the endpoint should validate that all given options is known and configured properly. |
boolean |
isSingleton()
Wheter this class supports being singleton or not. |
void |
setCamelContext(CamelContext context)
Sets the camel context. |
void |
setDetour(Processor detour)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptSendToEndpoint(Endpoint destination,
boolean skip)
destination - the original endpointskip - true to skip sending after the detour to the original endpoint| Method Detail |
|---|
public void setDetour(Processor detour)
public Endpoint getDelegate()
public String getEndpointUri()
Endpoint
getEndpointUri in interface Endpointpublic String getEndpointKey()
EndpointLifecycleStrategy when registering endpoint.
This allows to register different instances of endpoints with the same key.
For JMX mbeans this allows us to use the same JMX Mbean for all endpoints that are logical
the same but have different parameters. For instance the http endpoint.
getEndpointKey in interface Endpointpublic Exchange createExchange()
Endpoint
createExchange in interface Endpointpublic Exchange createExchange(ExchangePattern pattern)
EndpointExchangePattern such as whether its going
to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange
createExchange in interface Endpointpattern - the message exchange pattern for the exchange
public Exchange createExchange(Exchange exchange)
Endpoint
createExchange in interface Endpointexchange - given exchange to use for pre-populate
public CamelContext getCamelContext()
Endpoint
getCamelContext in interface Endpoint
public Producer createProducer()
throws Exception
Endpoint
createProducer in interface EndpointException - can be thrown
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
createConsumer in interface Endpointprocessor - the given processor
Exception - can be thrown
public PollingConsumer createPollingConsumer()
throws Exception
EndpointPollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor)
createPollingConsumer in interface EndpointException - if the pull consumer could not be createdpublic void configureProperties(Map options)
Endpoint
configureProperties in interface Endpointoptions - the options (properties)public void setCamelContext(CamelContext context)
Endpoint
setCamelContext in interface Endpointcontext - the camel contextpublic boolean isLenientProperties()
Endpoint
isLenientProperties in interface Endpointpublic boolean isSingleton()
IsSingleton
isSingleton in interface IsSingletonpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||