Package org.devacfr.maven.skins.reflow
Class URITool.URLRebaser
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.URITool.URLRebaser
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedURLRebaser(String oldPath, String newPath)Construct a URL rebaser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewPath()Get the new path.StringgetOldPath()Get the old path.StringrebaseLink(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.
-
-
-
Constructor Detail
-
URLRebaser
protected URLRebaser(@Nullable String oldPath, @Nullable String newPath)
Construct a URL rebaser.- Parameters:
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, iehttp://maven.apache.org/is valid,http://maven.apache.org/index.htmlis not.newPath- the new base URI. Has to be parsable as a URI.
-
-