Interface SnapshotPageUrlBuilder


  • public interface SnapshotPageUrlBuilder
    An interface to build an HTTP url for a specific snapshot page.

    These are the URLs that consumers will use to download snapshot pages. The returned URLs need to match the routing for your HTTP server that serves the pages.

    Snapshot page URLs are baked into the snapshot index when the snapshot is produced. This means that changing the format of page URLs will only take effect for snapshots produced from that point onward. You must ensure that old page URL formats continue to work for as long as the old snapshots need to be consumable.

    • Method Detail

      • pageUrl

        @NonNull
        @NonNull Url pageUrl​(@NonNull
                             @NonNull SnapshotId snapshotId,
                             @NonNull
                             @NonNull PageId pageId)
        Return a URL for snapshot page identified by snapshot and page IDs.
        Parameters:
        snapshotId - the ID of the snapshot
        pageId - the page ID
        Returns:
        the public URL of this snapshot page