org.apache.camel.util.component
Class ApiMethodPropertiesHelper<C>

java.lang.Object
  extended by org.apache.camel.util.component.ApiMethodPropertiesHelper<C>

public abstract class ApiMethodPropertiesHelper<C>
extends Object

Helper class to work with ApiMethod arguments to be extended by components.


Field Summary
protected  Class<?> componentConfigClass
           
protected  Set<String> componentConfigFields
           
protected static org.slf4j.Logger LOG
           
protected  String propertyPrefix
           
 
Constructor Summary
protected ApiMethodPropertiesHelper(Class<C> componentConfiguration, String propertyPrefix)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.slf4j.Logger LOG

componentConfigFields

protected final Set<String> componentConfigFields

componentConfigClass

protected final Class<?> componentConfigClass

propertyPrefix

protected final String propertyPrefix
Constructor Detail

ApiMethodPropertiesHelper

protected ApiMethodPropertiesHelper(Class<C> componentConfiguration,
                                    String propertyPrefix)
Method Detail

getExchangeProperties

public Map<String,Object> getExchangeProperties(Exchange exchange,
                                                Map<String,Object> properties)
Gets exchange header properties that start with propertyPrefix.

Parameters:
exchange - Camel exchange
properties - map to collect properties with required prefix

getEndpointProperties

public void getEndpointProperties(Object endpointConfiguration,
                                  Map<String,Object> properties)

getEndpointPropertyNames

public Set<String> getEndpointPropertyNames(Object endpointConfiguration)

getValidEndpointProperties

public Set<String> getValidEndpointProperties(Object endpointConfiguration)


Apache Camel