Package thredds.util
Class PathAliasReplacementImpl
- java.lang.Object
-
- thredds.util.PathAliasReplacementImpl
-
- All Implemented Interfaces:
PathAliasReplacement
public class PathAliasReplacementImpl extends Object implements PathAliasReplacement
PathAliasReplacement where alias must be at the start of the path.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description PathAliasReplacementImpl(String alias, String replacementPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsPathAlias(String path)StringgetAlias()StringgetReplacementPath()static List<PathAliasReplacement>makePathAliasReplacements(Map<String,String> aliases)StringreplaceIfMatch(String path)StringreplacePathAlias(String path)StringtoString()
-
-
-
Method Detail
-
makePathAliasReplacements
public static List<PathAliasReplacement> makePathAliasReplacements(Map<String,String> aliases)
-
getAlias
public String getAlias()
-
getReplacementPath
public String getReplacementPath()
-
containsPathAlias
public boolean containsPathAlias(String path)
- Specified by:
containsPathAliasin interfacePathAliasReplacement
-
replacePathAlias
public String replacePathAlias(String path)
- Specified by:
replacePathAliasin interfacePathAliasReplacement
-
replaceIfMatch
public String replaceIfMatch(String path)
- Specified by:
replaceIfMatchin interfacePathAliasReplacement
-
-