public final class RegexpPathMapping extends Object implements PathMapping
/etc/(.*)=/dummy/$1/customIDENTITY| Constructor and Description |
|---|
RegexpPathMapping() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> RegexpPathMapping |
addAllMappings(Map<K,V> pathsMappingMap)
Allows importing mappings specified in data structure such as Map or Properties.
|
RegexpPathMapping |
addMapping(String fromPattern,
String toPattern)
Add a new mapping based on regular expression.
|
String |
map(String path)
Maps the given path to a new location.
|
String |
map(String path,
boolean reverse)
Maps the given path to a new location.
|
RegexpPathMapping |
merge(RegexpPathMapping base)
Merges the regexp mapping from the given base mapping.
|
@Nonnull public <K,V> RegexpPathMapping addAllMappings(@Nonnull Map<K,V> pathsMappingMap)
V - Value typeK - KEey typepathsMappingMap - the data structure containing the mapping@Nonnull public RegexpPathMapping addMapping(@Nonnull String fromPattern, @Nonnull String toPattern)
fromPattern - the matching pattern, i.e. /etc/(.*)toPattern - the replacing pattern, i.e. /dummy/$1/custom@Nonnull public RegexpPathMapping merge(@Nullable RegexpPathMapping base)
base - base mapping@Nonnull public String map(@Nonnull String path)
map in interface PathMappingpath - the pathCopyright © 2010 - 2020 Adobe. All Rights Reserved