private static class DefaultDecorationModelInheritanceAssembler.URLRebaser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
newPath |
private java.lang.String |
oldPath |
Constructor and Description |
---|
URLRebaser(java.lang.String oldPath,
java.lang.String newPath)
Construct a URL rebaser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewPath()
Get the new path.
|
java.lang.String |
getOldPath()
Get the old path.
|
java.lang.String |
rebaseLink(java.lang.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
|
private final java.lang.String oldPath
private final java.lang.String newPath
public URLRebaser(java.lang.String oldPath, java.lang.String newPath)
oldPath
- the old path.newPath
- the new path.public java.lang.String getNewPath()
public java.lang.String getOldPath()
public java.lang.String rebaseLink(java.lang.String link)