Class DefaultDecorationModelInheritanceAssembler.URLRebaser
java.lang.Object
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.URLRebaser
- Enclosing class:
DefaultDecorationModelInheritanceAssembler
URL rebaser: based on an old and a new path, can rebase a link based on old path to a value based on the new
path.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the new path.Get the old path.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
-
Field Details
-
oldPath
-
newPath
-
-
Constructor Details
-
URLRebaser
Construct a URL rebaser.- Parameters:
oldPath
- the old path.newPath
- the new path.
-
-
Method Details
-
getNewPath
Get the new path.- Returns:
- the new path.
-
getOldPath
Get the old path.- Returns:
- the old path.
-
rebaseLink
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
-