org.apache.camel.component.properties
Interface PropertiesParser

All Known Subinterfaces:
AugmentedPropertyNameAwarePropertiesParser
All Known Implementing Classes:
DefaultPropertiesParser

public interface PropertiesParser

A parser to parse properties for a given input


Method Summary
 String parseProperty(String key, String value, Properties properties)
          While parsing the uri using parseUri each parsed property found invokes this callback.
 String parseUri(String text, Properties properties, String prefixToken, String suffixToken)
          Parses the string and replaces the property placeholders with values from the given properties.
 

Method Detail

parseUri

String parseUri(String text,
                Properties properties,
                String prefixToken,
                String suffixToken)
                throws IllegalArgumentException
Parses the string 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
Returns:
the parsed text with replaced placeholders
Throws:
IllegalArgumentException - if uri syntax is not valid or a property is not found

parseProperty

String parseProperty(String key,
                     String value,
                     Properties properties)
While parsing the uri using parseUri each parsed property found invokes this callback.

This strategy method allows you to hook into the parsing and do custom lookup and return the actual value to use.

Parameters:
key - the key
value - the value
properties - the properties resolved which values should be looked up
Returns:
the value to use


Apache CAMEL