public final class MetadataDownload extends MetadataTransfer
setException(MetadataTransferException)
to report the results of the transfer.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
checksumPolicy |
private java.lang.String |
context |
private java.util.List<RemoteRepository> |
repositories |
Constructor and Description |
---|
MetadataDownload()
Creates a new uninitialized download.
|
MetadataDownload(Metadata metadata,
java.lang.String context,
java.io.File file,
java.lang.String checksumPolicy)
Creates a new download with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChecksumPolicy()
Gets the checksum policy for this transfer.
|
java.util.List<RemoteRepository> |
getRepositories()
Gets the remote repositories that are being aggregated by the physically contacted remote repository (i.e.
|
java.lang.String |
getRequestContext()
Gets the context of this transfer.
|
MetadataDownload |
setChecksumPolicy(java.lang.String checksumPolicy)
Sets the checksum policy for this transfer.
|
MetadataDownload |
setException(MetadataTransferException exception)
Sets the exception that occurred during the transfer.
|
MetadataDownload |
setFile(java.io.File file)
Sets the local file the metadata is downloaded to or uploaded from.
|
MetadataDownload |
setListener(TransferListener listener)
Sets the listener that is to be notified during the transfer.
|
MetadataDownload |
setMetadata(Metadata metadata)
Sets the metadata to transfer.
|
MetadataDownload |
setRepositories(java.util.List<RemoteRepository> repositories)
Sets the remote repositories that are being aggregated by the physically contacted remote repository (i.e.
|
MetadataDownload |
setRequestContext(java.lang.String context)
Sets the request context of this transfer.
|
MetadataDownload |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this transfer is issued.
|
java.lang.String |
toString() |
getException, getFile, getMetadata
getListener, getTrace
private java.lang.String checksumPolicy
private java.lang.String context
private java.util.List<RemoteRepository> repositories
public MetadataDownload()
public MetadataDownload(Metadata metadata, java.lang.String context, java.io.File file, java.lang.String checksumPolicy)
metadata
- The metadata to download, may be null
.context
- The context in which this download is performed, may be null
.file
- The local file to download the metadata to, may be null
.checksumPolicy
- The checksum policy, may be null
.public MetadataDownload setMetadata(Metadata metadata)
MetadataTransfer
setMetadata
in class MetadataTransfer
metadata
- The metadata, may be null
.null
.public MetadataDownload setFile(java.io.File file)
MetadataTransfer
setFile
in class MetadataTransfer
file
- The local file, may be null
.null
.public java.lang.String getChecksumPolicy()
null
.public MetadataDownload setChecksumPolicy(java.lang.String checksumPolicy)
checksumPolicy
- The checksum policy, may be null
.null
.public java.lang.String getRequestContext()
null
.public MetadataDownload setRequestContext(java.lang.String context)
context
- The context id, may be null
.null
.public java.util.List<RemoteRepository> getRepositories()
null
.public MetadataDownload setRepositories(java.util.List<RemoteRepository> repositories)
repositories
- The remote repositories being aggregated, may be null
.null
.public MetadataDownload setException(MetadataTransferException exception)
MetadataTransfer
setException
in class MetadataTransfer
exception
- The exception, may be null
to denote a successful transfer.null
.public MetadataDownload setListener(TransferListener listener)
Transfer
setListener
in class Transfer
listener
- The transfer listener to notify, may be null
if none.null
.public MetadataDownload setTrace(RequestTrace trace)
Transfer
public java.lang.String toString()
toString
in class java.lang.Object