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 Details

    • 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 Details

    • ApiMethodPropertiesHelper

      protected ApiMethodPropertiesHelper(org.apache.camel.CamelContext context, Class<C> componentConfiguration, String propertyPrefix)
  • Method Details

    • 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 exchange
      properties - 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)
    • getConfigurationProperties

      public void getConfigurationProperties(org.apache.camel.CamelContext context, Object endpointConfiguration, Map<String,Object> properties)