Interface PathMapping
-
- All Known Implementing Classes:
MultiPathMapping
,RegexpPathMapping
,SimplePathMapping
public interface PathMapping
Provides an interface for a general path mapping.- Since:
- 2.4.10
-
-
Field Summary
Fields Modifier and Type Field Description static PathMapping
IDENTITY
Implements an identity mapping
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.String
map(@NotNull java.lang.String path)
Maps the given path to a new location.@NotNull java.lang.String
map(@NotNull java.lang.String path, boolean reverse)
Maps the given path to a new location.
-
-
-
Field Detail
-
IDENTITY
static final PathMapping IDENTITY
Implements an identity mapping
-
-
Method Detail
-
map
@NotNull @NotNull java.lang.String map(@NotNull @NotNull java.lang.String path)
Maps the given path to a new location.- Parameters:
path
- the path- Returns:
- the mapped path.
-
map
@NotNull @NotNull java.lang.String map(@NotNull @NotNull java.lang.String path, boolean reverse)
Maps the given path to a new location.- Parameters:
path
- the pathreverse
- iftrue
a reverse mapping is applied- Returns:
- the mapped path.
-
-