Class SimplePathMapping
java.lang.Object
org.apache.jackrabbit.vault.fs.api.SimplePathMapping
- All Implemented Interfaces:
PathMapping
Implements a simple path mapping that strips and prefixes a path.
- Since:
- 2.4.10
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.PathMapping
IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionSimplePathMapping(@NotNull String strip, @NotNull String root) Create a simple path mapping. -
Method Summary
-
Constructor Details
-
SimplePathMapping
Create a simple path mapping.- Parameters:
strip- the string to strip from the beginning of the pathroot- the prefix to add to the path.
-
-
Method Details
-
map
Maps the given path to a new location.- Specified by:
mapin interfacePathMapping- Parameters:
path- the path- Returns:
- the mapped path.
-
map
Maps the given path to a new location.- Specified by:
mapin interfacePathMapping- Parameters:
path- the pathreverse- iftruea reverse mapping is applied- Returns:
- the mapped path.
-