Class ContentPathConstraints


  • public final class ContentPathConstraints
    extends Object
    This class provides default path constraints that can be applied to OCFL content paths to attempt to ensure portability across various filesystems. It is useful to apply constraints for filesystems other than the local filesystem, as the local filesystem will readily enforce its own constraints.

    The constraints defined here are generalizations and do not exhaustively target specific filesystems. If you have specific needs that are not addressed here, create a custom ContentPathConstraintProcessor.

    The following constraints are ALWAYS applied:

    • Cannot have a leading OR trailing /
    • Cannot contain the following filenames: '.', '..'
    • Cannot contain an empty filename
    • Windows only: Cannot contain a \