Package io.ocfl.core.path.mapper
Class PercentEncodingLogicalPathMapper
java.lang.Object
io.ocfl.core.path.mapper.PercentEncodingLogicalPathMapper
- All Implemented Interfaces:
LogicalPathMapper
A
LogicalPathMapper
that percent-encodes specific characters in logical paths to produce safe content paths.-
Constructor Summary
ConstructorsConstructorDescriptionPercentEncodingLogicalPathMapper
(PercentEscaper percentEscaper) Constructs a newPercentEncodingLogicalPathMapper
. -
Method Summary
Modifier and TypeMethodDescriptiontoContentPathPart
(String logicalPath) Maps a logical path to a content path.
-
Constructor Details
-
PercentEncodingLogicalPathMapper
Constructs a newPercentEncodingLogicalPathMapper
.- Parameters:
percentEscaper
- the escaper to use for percent-encoding- See Also:
-
-
Method Details
-
toContentPathPart
Description copied from interface:LogicalPathMapper
Maps a logical path to a content path. This content path MUST be relative a version's content directory; not the object root.- Specified by:
toContentPathPart
in interfaceLogicalPathMapper
- Parameters:
logicalPath
- path to map- Returns:
- content path relative version content directory
-