Package thredds.util
Class PathAliasReplacementFromMap
- java.lang.Object
-
- thredds.util.PathAliasReplacementFromMap
-
- All Implemented Interfaces:
PathAliasReplacement
public class PathAliasReplacementFromMap extends Object implements PathAliasReplacement
PathAliasReplacement from map of key -> value- Since:
- 3/9/2015
-
-
Constructor Summary
Constructors Constructor Description PathAliasReplacementFromMap(String... keyvals)
PathAliasReplacementFromMap(Map<String,String> aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPathAlias(String path)
String
replaceIfMatch(String path)
String
replacePathAlias(String path)
-
-
-
Method Detail
-
containsPathAlias
public boolean containsPathAlias(String path)
- Specified by:
containsPathAlias
in interfacePathAliasReplacement
-
replaceIfMatch
public String replaceIfMatch(String path)
- Specified by:
replaceIfMatch
in interfacePathAliasReplacement
-
replacePathAlias
public String replacePathAlias(String path)
- Specified by:
replacePathAlias
in interfacePathAliasReplacement
-
-