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(Object endpointConfiguration,
Map<String,Object> properties) |
Set<String> |
getEndpointPropertyNames(Object endpointConfiguration) |
Map<String,Object> |
getExchangeProperties(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 Set<String> componentConfigFields
protected final Class<?> componentConfigClass
protected final String propertyPrefix
protected ApiMethodPropertiesHelper(Class<C> componentConfiguration, String propertyPrefix)
public Map<String,Object> getExchangeProperties(Exchange exchange, Map<String,Object> properties)
exchange
- Camel exchangeproperties
- map to collect properties with required prefixpublic void getEndpointProperties(Object endpointConfiguration, Map<String,Object> properties)
public Set<String> getEndpointPropertyNames(Object endpointConfiguration)
public Set<String> getValidEndpointProperties(Object endpointConfiguration)
Apache Camel