public interface PropertiesParser
Modifier and Type | Method and Description |
---|---|
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.
|
String parseUri(String text, Properties properties, String prefixToken, String suffixToken) throws IllegalArgumentException
text
- the text to be parsedproperties
- the properties resolved which values should be looked upprefixToken
- the prefix tokensuffixToken
- the suffix tokenIllegalArgumentException
- if uri syntax is not valid or a property is not foundString parseProperty(String key, String value, Properties properties)
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.key
- the keyvalue
- the valueproperties
- the properties resolved which values should be looked upApache Camel