public interface SendDynamicAware
SendDynamicProcessor
(toD)
to reuse a static Endpoint
and Producer
that supports
using headers to provide the dynamic parts. For example many of the HTTP components supports this.Modifier and Type | Interface and Description |
---|---|
static class |
SendDynamicAware.DynamicAwareEntry
An entry of detailed information from the recipient uri, which allows the
SendDynamicAware
implementation to prepare pre- and post- processor and the static uri to be used for the optimised dynamic to. |
Modifier and Type | Method and Description |
---|---|
Processor |
createPostProcessor(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
Creates an optional post
Processor that will be executed afterwards
when the message has been sent dynamic. |
Processor |
createPreProcessor(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
|
String |
getScheme()
Gets the component name
|
SendDynamicAware.DynamicAwareEntry |
prepare(Exchange exchange,
String uri)
Prepares for using optimised dynamic to by parsing the uri and returning an entry of details that are
used for creating the pre and post processors, and the static uri.
|
String |
resolveStaticUri(Exchange exchange,
SendDynamicAware.DynamicAwareEntry entry)
|
void |
setScheme(String scheme)
Sets the component name.
|
void setScheme(String scheme)
scheme
- name of the componentSendDynamicAware.DynamicAwareEntry prepare(Exchange exchange, String uri) throws Exception
exchange
- the exchangeuri
- the original uriException
- is thrown if error parsing the uriString resolveStaticUri(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry) throws Exception
Endpoint
and Producer
that will be reused for processing the optimised toD.exchange
- the exchangeentry
- prepared information about the dynamic endpoint to useException
- is thrown if error resolving the static uri.Processor createPreProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry) throws Exception
Processor
that will prepare the Exchange
with dynamic details from the given recipient.exchange
- the exchangeentry
- prepared information about the dynamic endpoint to useException
- is thrown if error creating the pre processor.Processor createPostProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry) throws Exception
Processor
that will be executed afterwards
when the message has been sent dynamic.exchange
- the exchangeentry
- prepared information about the dynamic endpoint to useException
- is thrown if error creating the post processor.Apache Camel