public abstract class ApiMethodPropertiesHelper<C> extends Object
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
componentConfigClass |
protected Set<String> |
componentConfigFields |
protected static org.slf4j.Logger |
LOG |
protected String |
propertyPrefix |
Modifier | Constructor and Description |
---|---|
protected |
ApiMethodPropertiesHelper(Class<C> componentConfiguration,
String propertyPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
getEndpointProperties(org.apache.camel.CamelContext context,
Object endpointConfiguration,
Map<String,Object> properties) |
Set<String> |
getEndpointPropertyNames(org.apache.camel.CamelContext context,
Object endpointConfiguration) |
Map<String,Object> |
getExchangeProperties(org.apache.camel.Exchange exchange,
Map<String,Object> properties)
Gets exchange header properties that start with propertyPrefix.
|
Set<String> |
getValidEndpointProperties(Object endpointConfiguration) |
protected static final org.slf4j.Logger LOG
protected final Class<?> componentConfigClass
protected final String propertyPrefix
public Map<String,Object> getExchangeProperties(org.apache.camel.Exchange exchange, Map<String,Object> properties)
exchange
- Camel exchangeproperties
- map to collect properties with required prefixpublic void getEndpointProperties(org.apache.camel.CamelContext context, Object endpointConfiguration, Map<String,Object> properties)
public Set<String> getEndpointPropertyNames(org.apache.camel.CamelContext context, Object endpointConfiguration)
Apache Camel