org.mule.common.metadata.util
Class PathUtilities

java.lang.Object
  extended by org.mule.common.metadata.util.PathUtilities

public final class PathUtilities
extends Object


Constructor Summary
PathUtilities()
           
 
Method Summary
static String extractDirectoryPath(String path)
          Get the parent of the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtilities

public PathUtilities()
Method Detail

extractDirectoryPath

public static String extractDirectoryPath(String path)
Get the parent of the given path.

Parameters:
path - The path for which to retrieve the parent
Returns:
The parent path. /sub/sub2/index.html -> /sub/sub2 If the given path is the root path ("/" or ""), return a blank string.


Copyright © 2015 MuleSoft, Inc.. All rights reserved.