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 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.
-
-
-
Field Detail
-
IDENTITY
static final PathMapping IDENTITY
Implements an identity mapping
-
-
Method Detail
-
map
@Nonnull java.lang.String map(@Nonnull java.lang.String path)
Maps the given path to a new location.- Parameters:
path
- the path- Returns:
- the mapped path.
-
map
@Nonnull java.lang.String map(@Nonnull 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.
-
-