Class PathUtils
java.lang.Object
org.apache.maven.wagon.PathUtils
Various path (URL) manipulation routines
- Author:
- Michal Maczka
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDerive the path portion of the given URL.static StringReturns the directory path portion of a file specification string.static String[]static StringReturns the filename portion of a file specification string.static StringReturn the host name (Removes protocol and path from the URL) E.g: for inputhttp://www.codehause.orgthis method will returnwww.apache.orgstatic Stringstatic intstatic String/** Return the protocol name.static StringtoRelative(File basedir, String absolutePath) static String
-
Method Details
-
dirname
-
filename
-
dirnames
-
host
-
protocol
-
port
- Parameters:
url-- Returns:
- the port or
WagonConstants.UNKNOWN_PORTif not existent
-
basedir
-
user
-
password
-
toRelative
-