Class CloudOcflStorageBuilder


  • public class CloudOcflStorageBuilder
    extends Object
    Builder for constructing S3OcflStorage objects. It is configured with sensible defaults and can minimally be used as new S3OcflStorageBuilder().s3Client(s3Client).workDir(workDir).build(bucketName).
    • Constructor Detail

      • CloudOcflStorageBuilder

        public CloudOcflStorageBuilder()
    • Method Detail

      • cloudClient

        public CloudOcflStorageBuilder cloudClient​(CloudClient cloudClient)
        Sets the cloud client. This must be set prior to calling build().
        Parameters:
        cloudClient - the client to use to interface with cloud storage such as S3
        Returns:
        builder
      • objectMapper

        public CloudOcflStorageBuilder objectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Overrides the default ObjectMapper that's used to serialize ocfl_layout.json
        Parameters:
        objectMapper - object mapper
        Returns:
        builder
      • verifyInventoryDigest

        public CloudOcflStorageBuilder verifyInventoryDigest​(boolean verifyInventoryDigest)
        Configures whether inventory digests should be verified on read. This means computing the digest of the inventory file and comparing it with the digest in the inventory's sidecar. Default: true.
        Parameters:
        verifyInventoryDigest - true if inventory digests should be verified on read
        Returns:
        builder