public class SimplePathMapping extends java.lang.Object implements PathMapping
IDENTITY
Constructor and Description |
---|
SimplePathMapping(java.lang.String strip,
java.lang.String root)
Create a simple path mapping.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SimplePathMapping(java.lang.String strip, java.lang.String root)
strip
- the string to strip from the beginning of the pathroot
- the prefix to add to the path.public java.lang.String map(java.lang.String path)
map
in interface PathMapping
path
- the pathpublic java.lang.String map(java.lang.String path, boolean reverse)
map
in interface PathMapping
path
- the pathreverse
- if true
a reverse mapping is applied"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"