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<?>componentConfigClassprotected Set<String>componentConfigFieldsprotected static org.slf4j.LoggerLOGprotected StringpropertyPrefix
-
Constructor Summary
Constructors Modifier Constructor Description protectedApiMethodPropertiesHelper(org.apache.camel.CamelContext context, Class<C> componentConfiguration, String propertyPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetConfigurationProperties(org.apache.camel.CamelContext context, Object endpointConfiguration, Map<String,Object> properties)voidgetEndpointProperties(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)
-
-