Class DefaultDecorationModelInheritanceAssembler.URLRebaser

java.lang.Object
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.URLRebaser
Enclosing class:
DefaultDecorationModelInheritanceAssembler

private static class DefaultDecorationModelInheritanceAssembler.URLRebaser extends Object
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 Details

    • oldPath

      private final String oldPath
    • newPath

      private final String newPath
  • Constructor Details

    • URLRebaser

      URLRebaser(String oldPath, String newPath)
      Construct a URL rebaser.
      Parameters:
      oldPath - the old path.
      newPath - the new path.
  • Method Details

    • getNewPath

      public String getNewPath()
      Get the new path.
      Returns:
      the new path.
    • getOldPath

      public String getOldPath()
      Get the old path.
      Returns:
      the old path.
    • rebaseLink

      public 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