public interface ConnectorComponent
extends org.apache.camel.Component
Modifier and Type | Method and Description |
---|---|
void |
addOption(String name,
Object value)
Adds a new option to the connector's options.
|
void |
addOptions(Map<String,Object> options)
Adds options to the connector's options.
|
String |
createEndpointUri(String scheme,
Map<String,String> options)
Creates the endpoint uri based on the options from the connector.
|
org.apache.camel.Processor |
getAfterConsumer()
Gets the processor used to perform custom processing when the consumer is about to send back a reply message to the caller (if InOut).
|
org.apache.camel.Processor |
getAfterProducer()
Gets the processor used to perform custom processing after the producer has sent the message and received any reply (if InOut).
|
org.apache.camel.Processor |
getBeforeConsumer()
Gets the processor used to perform custom processing when the consumer has just received a new incoming message.
|
org.apache.camel.Processor |
getBeforeProducer()
Gets the processor used to perform custom processing before the producer is sending the message.
|
org.apache.camel.catalog.CamelCatalog |
getCamelCatalog()
Gets the
CamelCatalog which can be used by the connector to help create the component. |
String |
getCamelConnectorJSon()
Gets the camel-connector JSon file.
|
String |
getComponentName()
Gets the connector component name
|
default Map<String,Object> |
getComponentOptions()
Deprecated.
use
getOptions() instead |
String |
getComponentScheme()
Gets the connector component scheme
|
String |
getConnectorName()
Gets the connector name (title)
|
Map<String,Object> |
getOptions()
A set of additional component/endpoint options to use for the base component when creating connector endpoints.
|
void |
setAfterConsumer(org.apache.camel.Processor processor)
To perform custom processing when the consumer is about to send back a reply message to the caller (if InOut).
|
void |
setAfterProducer(org.apache.camel.Processor processor)
To perform custom processing after the producer has sent the message and received any reply (if InOut).
|
void |
setBeforeConsumer(org.apache.camel.Processor processor)
To perform custom processing when the consumer has just received a new incoming message.
|
void |
setBeforeProducer(org.apache.camel.Processor processor)
To perform custom processing before the producer is sending the message.
|
default void |
setComponentOptions(Map<String,Object> options)
Deprecated.
use
setOptions(Map) instead |
void |
setOptions(Map<String,Object> options)
A set of additional component/endpoint options to use for the base component when creating connector endpoints.
|
void addOption(String name, Object value)
name
- the name of the optionvalue
- the value of the optionvoid addOptions(Map<String,Object> options)
options
- the optionsString createEndpointUri(String scheme, Map<String,String> options) throws URISyntaxException
scheme
- the component nameoptions
- the options to use for creating the endpointURISyntaxException
- is thrown if error creating the endpoint uri.org.apache.camel.catalog.CamelCatalog getCamelCatalog()
CamelCatalog
which can be used by the connector to help create the component.String getConnectorName()
String getComponentName()
String getComponentScheme()
String getCamelConnectorJSon()
@Deprecated default Map<String,Object> getComponentOptions()
getOptions()
insteadMap<String,Object> getOptions()
@Deprecated default void setComponentOptions(Map<String,Object> options)
setOptions(Map)
insteadvoid setOptions(Map<String,Object> options)
void setBeforeProducer(org.apache.camel.Processor processor)
org.apache.camel.Processor getBeforeProducer()
void setAfterProducer(org.apache.camel.Processor processor)
org.apache.camel.Processor getAfterProducer()
void setBeforeConsumer(org.apache.camel.Processor processor)
org.apache.camel.Processor getBeforeConsumer()
void setAfterConsumer(org.apache.camel.Processor processor)
org.apache.camel.Processor getAfterConsumer()
Apache Camel