Modifier | Constructor and Description |
---|---|
protected |
URLRebaser(String oldPath,
String newPath)
Construct a URL rebaser.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewPath()
Get the new path.
|
String |
getOldPath()
Get the old path.
|
String |
rebaseLink(String link)
Rebase only affects relative links, a relative link wrt an old base gets translated, so it points to the same
location as viewed from a new base.
|
protected URLRebaser(@Nullable String oldPath, @Nullable String newPath)
oldPath
- the old path. The base URI. Has to be a valid absolute URI. In addition, the path of the URI
should not have any file part, ie http://maven.apache.org/
is valid,
http://maven.apache.org/index.html
is not.newPath
- the new base URI. Has to be parsable as a URI.Copyright © 2012–2023 Friederich Christophe. All rights reserved.