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.
|
@Nonnull public <K,V> RegexpPathMapping addAllMappings(@Nonnull java.util.Map<K,V> pathsMappingMap)
V - Value typeK - KEey typepathsMappingMap - the data structure containing the mapping@Nonnull public RegexpPathMapping addMapping(@Nonnull java.lang.String fromPattern, @Nonnull java.lang.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 java.lang.String map(@Nonnull
java.lang.String path)
map in interface PathMappingpath - the path@Nonnull
public java.lang.String map(@Nonnull
java.lang.String path,
boolean reverse)
map in interface PathMappingpath - the pathreverse - if true a reverse mapping is appliedCopyright © 2010 - 2023 Adobe. All Rights Reserved