public final class RegexpPathMapping extends java.lang.Object implements PathMapping
/etc/(.*)=/dummy/$1/customIDENTITY| Constructor and Description |
|---|
RegexpPathMapping() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> RegexpPathMapping |
addAllMappings(java.util.Map<K,V> pathsMappingMap)
Allows importing mappings specified in data structure such as Map or Properties.
|
RegexpPathMapping |
addMapping(java.lang.String fromPattern,
java.lang.String toPattern)
Add a new mapping based on regular expression.
|
java.lang.String |
map(java.lang.String path)
Maps the given path to a new location.
|
java.lang.String |
map(java.lang.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.
|
public <K,V> RegexpPathMapping addAllMappings(java.util.Map<K,V> pathsMappingMap)
V - Value typeK - KEey typepathsMappingMap - the data structure containing the mappingpublic RegexpPathMapping addMapping(java.lang.String fromPattern, java.lang.String toPattern)
fromPattern - the matching pattern, i.e. /etc/(.*)toPattern - the replacing pattern, i.e. /dummy/$1/custompublic RegexpPathMapping merge(RegexpPathMapping base)
base - base mappingpublic java.lang.String map(java.lang.String path)
map in interface PathMappingpath - the pathpublic java.lang.String map(java.lang.String path,
boolean reverse)
map in interface PathMappingpath - the pathreverse - if true a reverse mapping is applied"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"