Class SimplePathMapping
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.api.SimplePathMapping
-
- All Implemented Interfaces:
PathMapping
public class SimplePathMapping extends Object implements 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
Constructors Constructor Description SimplePathMapping(@NotNull String strip, @NotNull String root)
Create a simple path mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
map(@NotNull String path)
Maps the given path to a new location.@NotNull String
map(@NotNull String path, boolean reverse)
Maps the given path to a new location.
-
-
-
Method Detail
-
map
@NotNull public @NotNull String map(@NotNull @NotNull String path)
Maps the given path to a new location.- Specified by:
map
in interfacePathMapping
- Parameters:
path
- the path- Returns:
- the mapped path.
-
map
@NotNull public @NotNull String map(@NotNull @NotNull String path, boolean reverse)
Maps the given path to a new location.- Specified by:
map
in interfacePathMapping
- Parameters:
path
- the pathreverse
- iftrue
a reverse mapping is applied- Returns:
- the mapped path.
-
-