org.apache.camel.component.facebook.data
Class FacebookPropertiesHelper

java.lang.Object
  extended by org.apache.camel.component.facebook.data.FacebookPropertiesHelper

public final class FacebookPropertiesHelper
extends Object

Helper class to work with Facebook component properties.


Method Summary
static void configureReadingProperties(FacebookEndpointConfiguration configuration, Map<String,Object> options)
          Apply properties for Reading type to the supplied FacebookEndpointConfiguration.
static void getEndpointProperties(FacebookEndpointConfiguration configuration, Map<String,Object> properties)
           
static Set<String> getEndpointPropertyNames(FacebookEndpointConfiguration configuration)
           
static Map<String,Object> getExchangeProperties(org.apache.camel.Exchange exchange, Map<String,Object> properties)
          Gets exchange header properties that start with FacebookConstants.FACEBOOK_PROPERTY_PREFIX.
static Set<String> getValidEndpointProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configureReadingProperties

public static void configureReadingProperties(FacebookEndpointConfiguration configuration,
                                              Map<String,Object> options)
Apply properties for Reading type to the supplied FacebookEndpointConfiguration.

Parameters:
configuration - endpoint configuration to update
options - properties to apply to the reading field in configuration

getExchangeProperties

public static Map<String,Object> getExchangeProperties(org.apache.camel.Exchange exchange,
                                                       Map<String,Object> properties)
Gets exchange header properties that start with FacebookConstants.FACEBOOK_PROPERTY_PREFIX.

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

getEndpointProperties

public static void getEndpointProperties(FacebookEndpointConfiguration configuration,
                                         Map<String,Object> properties)

getEndpointPropertyNames

public static Set<String> getEndpointPropertyNames(FacebookEndpointConfiguration configuration)

getValidEndpointProperties

public static Set<String> getValidEndpointProperties()


Apache Camel