public static interface DownloadService.Manifest
Currently, source URIs must be unique. I.e. it is not possible to have a manifest with the same source URI and two or more target destinations.
Modifier and Type | Interface and Description |
---|---|
static interface |
DownloadService.Manifest.Builder
Builder for Manifest.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<org.apache.commons.lang3.tuple.Pair<java.net.URI,java.io.File>> |
getEntries()
Get the manifest entries.
|
java.util.Set<java.net.URI> |
getSourceFileUris()
Get the set of URI s (source files) that were added to the manifest.
|
java.util.Set<java.io.File> |
getTargetDirectories()
Get the set of directories that contain all the target files.
|
java.util.Set<java.io.File> |
getTargetFiles()
Get the set of files representing expected target location for files to be downloaded.
|
java.io.File |
getTargetLocation(java.net.URI sourceFileUri)
Return the target location for a given source URI.
|
java.util.Set<java.io.File> getTargetFiles()
java.util.Set<java.io.File> getTargetDirectories()
java.util.Set<java.net.URI> getSourceFileUris()
java.util.Set<org.apache.commons.lang3.tuple.Pair<java.net.URI,java.io.File>> getEntries()
@Nullable java.io.File getTargetLocation(java.net.URI sourceFileUri)
sourceFileUri
- source file URI