org.apache.camel.util
Class FilePathResolver

java.lang.Object
  extended by org.apache.camel.util.FilePathResolver

public final class FilePathResolver
extends Object

A resolver for file paths that supports resolving with system and environment properties.


Method Summary
static String resolvePath(String path)
          Resolves the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolvePath

public static String resolvePath(String path)
                          throws IllegalArgumentException
Resolves the path.

The pattern is:

For example: ${env.KARAF_HOME}/data/logs

Parameters:
path - the path
Returns:
the resolved path
Throws:
IllegalArgumentException - is thrown if system property / environment not found


Apache Camel