Package io.ocfl.core.path
Class ContentPathMapper
java.lang.Object
io.ocfl.core.path.ContentPathMapper
This maps logical paths to content paths and applies content path constraints.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionContentPathMapper
(LogicalPathMapper logicalPathMapper, ContentPathConstraintProcessor contentPathConstraintProcessor, String objectRootPath, String contentDirectory, VersionNum versionNum, RevisionNum revisionNum) -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentPathMapper.Builder
builder()
fromLogicalPath
(String logicalPath) Returns a content path for the given logical path after sanitizing it and ensuring that it meets the configured content path constraints.
-
Constructor Details
-
ContentPathMapper
public ContentPathMapper(LogicalPathMapper logicalPathMapper, ContentPathConstraintProcessor contentPathConstraintProcessor, String objectRootPath, String contentDirectory, VersionNum versionNum, RevisionNum revisionNum)
-
-
Method Details
-
builder
-
fromLogicalPath
Returns a content path for the given logical path after sanitizing it and ensuring that it meets the configured content path constraints.- Parameters:
logicalPath
- the logical path of the file in the object- Returns:
- the content path to store the file at
-