public class ExternalCallComponent extends Object implements org.apache.camel.Component
The URI format is the following:
extcall:[keyType]:[targetURI]
where keyType can be one of:
message
- to generate a key based on message source system and correlation ID,
effectively providing duplicate call protection, but not obsolete call protectionentity
- to generate a key based on message objectId property,
providing both duplicate call protection and obsolete call protectioncustom
- to use a custom key provided in the ExtCallComponentParams.EXTERNAL_CALL_KEY
exchange propertyExtCallComponentParams.EXTERNAL_CALL_KEY
exchange property is provided,
it will be appended to the generated key.
By default, the targetURI
is used as the operation.
This can be changed by providing an optional ExtCallComponentParams.EXTERNAL_CALL_OPERATION
exchange property.
The targetURI will still be the URI that is called, if the external call is not skipped,
but the duplicate/obsolete protection logic will use the ExtCallComponentParams.EXTERNAL_CALL_OPERATION
value for checking,
if the call should be made or skipped.
Constructor and Description |
---|
ExternalCallComponent() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.ComponentConfiguration |
createComponentConfiguration() |
org.apache.camel.EndpointConfiguration |
createConfiguration(String uri) |
org.apache.camel.Endpoint |
createEndpoint(String uri) |
org.apache.camel.CamelContext |
getCamelContext() |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
boolean |
useRawUri() |
public org.apache.camel.Endpoint createEndpoint(String uri) throws Exception
createEndpoint
in interface org.apache.camel.Component
Exception
public boolean useRawUri()
useRawUri
in interface org.apache.camel.Component
public org.apache.camel.EndpointConfiguration createConfiguration(String uri) throws Exception
createConfiguration
in interface org.apache.camel.Component
Exception
public org.apache.camel.ComponentConfiguration createComponentConfiguration()
createComponentConfiguration
in interface org.apache.camel.Component
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.