org.apache.camel.component.properties
Interface AugmentedPropertyNameAwarePropertiesParser

All Superinterfaces:
PropertiesParser
All Known Implementing Classes:
DefaultPropertiesParser

public interface AugmentedPropertyNameAwarePropertiesParser
extends PropertiesParser

Interface for property parses that can attempt parsing property names using a fixed property name prefix and suffix.


Method Summary
 String parseUri(String text, Properties properties, String prefixToken, String suffixToken, String propertyPrefix, String propertySuffix, boolean fallbackToUnaugmentedProperty)
          Parses the string, applying the optional propertyPrefix and propertySuffix to the parsed property names, and replaces the property placeholders with values from the given properties.
 
Methods inherited from interface org.apache.camel.component.properties.PropertiesParser
parseProperty, parseUri
 

Method Detail

parseUri

String parseUri(String text,
                Properties properties,
                String prefixToken,
                String suffixToken,
                String propertyPrefix,
                String propertySuffix,
                boolean fallbackToUnaugmentedProperty)
                throws IllegalArgumentException
Parses the string, applying the optional propertyPrefix and propertySuffix to the parsed property names, and replaces the property placeholders with values from the given properties.

Parameters:
text - the text to be parsed
properties - the properties resolved which values should be looked up
prefixToken - the prefix token
suffixToken - the suffix token
propertyPrefix - the optional property name prefix to augment parsed property names with
propertySuffix - the optional property name suffix to augment parsed property names with
fallbackToUnaugmentedProperty - flag indicating if the originally parsed property name should by used for resolution if there is no match to the augmented property name
Returns:
the parsed text with replaced placeholders
Throws:
IllegalArgumentException - if uri syntax is not valid or a property is not found


Apache CAMEL