Class PathUtils
java.lang.Object
org.eclipse.aether.transport.file.PathUtils
URL handling for file URLs. Based on org.apache.maven.wagon.PathUtils.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathUtils
private PathUtils()
-
-
Method Details
-
protocol
Return the protocol name.
E.g: for inputhttp://www.codehause.orgthis method will returnhttp- Parameters:
url- the url- Returns:
- the host name
-
basedir
Derive the path portion of the given URL.- Parameters:
url- the file-repository URL- Returns:
- the basedir of the repository
-
decode
Decodes the specified (portion of a) URL. Note: This decoder assumes that ISO-8859-1 is used to convert URL-encoded octets to characters.- Parameters:
url- The URL to decode, may benull.- Returns:
- The decoded URL or
nullif the input wasnull.
-