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 boolean
containsPathAlias(String path)
String
getAlias()
String
getReplacementPath()
static List<PathAliasReplacement>
makePathAliasReplacements(Map<String,String> aliases)
String
replaceIfMatch(String path)
String
replacePathAlias(String path)
String
toString()
-
-
-
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:
containsPathAlias
in interfacePathAliasReplacement
-
replacePathAlias
public String replacePathAlias(String path)
- Specified by:
replacePathAlias
in interfacePathAliasReplacement
-
replaceIfMatch
public String replaceIfMatch(String path)
- Specified by:
replaceIfMatch
in interfacePathAliasReplacement
-
-