|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.test.util.connector.TestConnectorPathUtils
public final class TestConnectorPathUtils
URL handling for file URLs. Based on org.apache.maven.wagon.PathUtils.
Method Summary | |
---|---|
static java.lang.String |
basedir(java.lang.String url)
Derive the path portion of the given URL. |
static java.lang.String |
dirname(java.lang.String path)
Returns the directory path portion of a file specification string. |
static java.lang.String[] |
dirnames(java.lang.String path)
|
static java.lang.String |
filename(java.lang.String path)
Returns the filename portion of a file specification string. |
static java.lang.String |
protocol(java.lang.String url)
Return the protocol name. |
static java.lang.String |
toRelative(java.io.File basedir,
java.lang.String absolutePath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String dirname(java.lang.String path)
public static java.lang.String filename(java.lang.String path)
public static java.lang.String[] dirnames(java.lang.String path)
public static java.lang.String protocol(java.lang.String url)
http://www.codehause.org
this method will return http
url
- the url
public static java.lang.String basedir(java.lang.String url)
url
- the file-repository URL
public static java.lang.String toRelative(java.io.File basedir, java.lang.String absolutePath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |