public class PathAliasReplacementImpl extends java.lang.Object implements PathAliasReplacement
Constructor and Description |
---|
PathAliasReplacementImpl(java.lang.String alias,
java.lang.String replacementPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPathAlias(java.lang.String path) |
java.lang.String |
getAlias() |
java.lang.String |
getReplacementPath() |
static java.util.List<PathAliasReplacement> |
makePathAliasReplacements(java.util.Map<java.lang.String,java.lang.String> aliases) |
java.lang.String |
replaceIfMatch(java.lang.String path) |
java.lang.String |
replacePathAlias(java.lang.String path) |
java.lang.String |
toString() |
public PathAliasReplacementImpl(java.lang.String alias, java.lang.String replacementPath)
public static java.util.List<PathAliasReplacement> makePathAliasReplacements(java.util.Map<java.lang.String,java.lang.String> aliases)
public java.lang.String getAlias()
public java.lang.String getReplacementPath()
public boolean containsPathAlias(java.lang.String path)
containsPathAlias
in interface PathAliasReplacement
public java.lang.String replacePathAlias(java.lang.String path)
replacePathAlias
in interface PathAliasReplacement
public java.lang.String replaceIfMatch(java.lang.String path)
replaceIfMatch
in interface PathAliasReplacement
public java.lang.String toString()
toString
in class java.lang.Object