Interface I_CmsStorageDelivery

All Known Implementing Classes:
CmsFsStorage, CmsS3Storage

public interface I_CmsStorageDelivery
Optional HTTP delivery capability for backends of the OpenCms deduplicating media storage engine (DMSE).

This capability provides content streaming and optional byte-range delivery. A backend can support DMSE content storage and deduplication without implementing this delivery interface.

See Also:
  • Method Details

    • streamRangeTo

      void streamRangeTo(CmsDbContext dbc, String hash, long start, long length, OutputStream out) throws Exception
      Streams a byte range to the given output stream.

      Parameters:
      dbc - the database context
      hash - the SHA-512 content hash
      start - the first byte to stream
      length - the number of bytes to stream
      out - the output stream to write to
      Throws:
      Exception - if streaming fails
    • streamTo

      void streamTo(CmsDbContext dbc, String hash, OutputStream out) throws Exception
      Streams the content to the given output stream.

      Parameters:
      dbc - the database context
      hash - the SHA-512 content hash
      out - the output stream to write to
      Throws:
      Exception - if streaming fails
    • supportsRangeDelivery

      Returns if range delivery is supported.

      Returns:
      true if byte range delivery is supported