Class ApiMethodPropertiesHelper<C>
- java.lang.Object
-
- org.apache.camel.support.component.ApiMethodPropertiesHelper<C>
-
public abstract class ApiMethodPropertiesHelper<C> extends Object
Helper class to work with ApiMethod arguments to be extended by components.
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>
componentConfigClass
protected Set<String>
componentConfigFields
protected static org.slf4j.Logger
LOG
protected String
propertyPrefix
-
Constructor Summary
Constructors Modifier Constructor Description protected
ApiMethodPropertiesHelper(org.apache.camel.CamelContext context, Class<C> componentConfiguration, String propertyPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getConfigurationProperties(org.apache.camel.CamelContext context, Object endpointConfiguration, Map<String,Object> properties)
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(org.apache.camel.CamelContext context, Object endpointConfiguration)
-
-
-
Method Detail
-
getExchangeProperties
public Map<String,Object> getExchangeProperties(org.apache.camel.Exchange exchange, Map<String,Object> properties)
Gets exchange header properties that start with propertyPrefix.- Parameters:
exchange
- Camel exchangeproperties
- map to collect properties with required prefix
-
getEndpointProperties
public void getEndpointProperties(org.apache.camel.CamelContext context, Object endpointConfiguration, Map<String,Object> properties)
-
getEndpointPropertyNames
public Set<String> getEndpointPropertyNames(org.apache.camel.CamelContext context, Object endpointConfiguration)
-
getValidEndpointProperties
public Set<String> getValidEndpointProperties(org.apache.camel.CamelContext context, Object endpointConfiguration)
-
-