org.apache.maven.wagon
public class PathUtils extends Object
Version: $Id: PathUtils.java 165261 2005-04-29 04:50:40Z brett $
Method Summary | |
---|---|
static String | authorization(String url) |
static String | basedir(String url) |
static String | dirname(String path)
Returns the directory path portion of a file specification string.
|
static String[] | dirnames(String path) |
static String | filename(String path)
Returns the filename portion of a file specification string.
|
static String | host(String url)
Return the host name (Removes protocol and path from the URL) E.g: for input
http://www.codehause.org this method will return www.apache.org
|
static String | password(String url) |
static int | port(String url) |
static String | protocol(String url)
/**
Return the protocol name.
|
static String[] | split(String str, String separator, int max) |
static String | toRelative(File basedir, String absolutePath) |
static String | user(String url) |
Parameters: url
Returns:
UNKNOWN: need to URL decode for spaces?
Returns: The directory portion excluding the ending file separator.
Returns: The filename string with extension.
http://www.codehause.org
this method will return www.apache.org
Parameters: url the url
Returns: the host name
Parameters: url
Returns:
http://www.codehause.org
this method will return http
Parameters: url the url
Returns: the host name