Package com.adobe.cq.dam.download.api
Interface DownloadManifest
Provides a means for specifying which binaries should be included in a download.
The manifest primarily consists of one or more DownloadTarget items
that the consumer needs to download. The DownloadService will convert
these targets into one or more URIs that will be provided as the output of
the download process.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTarget(DownloadTarget target) Adds a newDownloadTargetitem to the manifest.Retrieves all the parameter options to be applied on this downloadintRetrieves the total number of targets that are included in the manifest.Retrieves all of theDownloadTargetitems that have been added to the manifest.
-
Method Details
-
getTargetCount
int getTargetCount()Retrieves the total number of targets that are included in the manifest.- Returns:
- Number of targets.
-
addTarget
Adds a newDownloadTargetitem to the manifest. This flavor accepts an instance of DownloadTarget, which might be helpful in cases where more control over the target may be required.- Parameters:
target- The target to add to the manifest's list of targets.
-
getTargets
Collection<DownloadTarget> getTargets()Retrieves all of theDownloadTargetitems that have been added to the manifest.- Returns:
- The manifest's targets.
-
getParameters
Retrieves all the parameter options to be applied on this download- Returns:
- map of the parameters
-