Class ContentPathMapper

java.lang.Object
io.ocfl.core.path.ContentPathMapper

public class ContentPathMapper extends Object
This maps logical paths to content paths and applies content path constraints.
  • Constructor Details

  • Method Details

    • builder

      public static ContentPathMapper.Builder builder()
    • fromLogicalPath

      public String 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.
      Parameters:
      logicalPath - the logical path of the file in the object
      Returns:
      the content path to store the file at