public interface SendDynamicAware
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,
String originalUri)
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 componentString getScheme()
SendDynamicAware.DynamicAwareEntry prepare(Exchange exchange, String uri, String originalUri) throws Exception
exchange
- the exchangeuri
- the resolved uri which is intended to be usedoriginalUri
- the original uri of the endpoint before any dynamic evaluationException
- 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