public class DefaultPropertiesParser extends Object implements PropertiesParser
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
DefaultPropertiesParser() |
DefaultPropertiesParser(PropertiesComponent propertiesComponent) |
| Modifier and Type | Method and Description |
|---|---|
PropertiesComponent |
getPropertiesComponent() |
String |
parseProperty(String key,
String value,
PropertiesLookup properties)
While parsing the uri using parseUri method each parsed property found invokes this callback.
|
String |
parseUri(String text,
PropertiesLookup properties,
boolean defaultFallbackEnabled)
Parses the string and replaces the property placeholders with values from the given properties.
|
void |
setPropertiesComponent(PropertiesComponent propertiesComponent) |
public DefaultPropertiesParser()
public DefaultPropertiesParser(PropertiesComponent propertiesComponent)
public PropertiesComponent getPropertiesComponent()
public void setPropertiesComponent(PropertiesComponent propertiesComponent)
public String parseUri(String text, PropertiesLookup properties, boolean defaultFallbackEnabled) throws IllegalArgumentException
PropertiesParserparseUri in interface PropertiesParsertext - the text to be parsedproperties - the properties resolved which values should be looked updefaultFallbackEnabled - whether to support using fallback values if a property cannot be foundIllegalArgumentException - if uri syntax is not valid or a property is not foundpublic String parseProperty(String key, String value, PropertiesLookup properties)
PropertiesParserparseProperty in interface PropertiesParserkey - the keyvalue - the valueproperties - the properties resolved which values should be looked upApache Camel