org.apache.camel.component.properties
Class PropertiesParser
java.lang.Object
org.apache.camel.component.properties.PropertiesParser
public final class PropertiesParser
- extends Object
A parser to parse a string which contains property placeholders
- Version:
- $Revision: 18575 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseUri
public static String parseUri(String uri,
Properties properties,
String prefixToken,
String suffixToken)
throws IllegalArgumentException
- Parses the string and replaces the property placeholders with values from the given properties
- Parameters:
uri - the uriproperties - the propertiesprefixToken - the prefix tokensuffixToken - the suffix token
- Returns:
- the uri with replaced placeholders
- Throws:
IllegalArgumentException - if uri syntax is not valid or a property is not found
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.