org.apache.camel.component.properties
Class PropertiesParser

java.lang.Object
  extended by 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 $

Method Summary
static String parseUri(String uri, Properties properties, String prefixToken, String suffixToken)
          Parses the string and replaces the property placeholders with values from the given properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 uri
properties - the properties
prefixToken - the prefix token
suffixToken - 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.