public final class MetadataDownload extends MetadataTransfer
setException(MetadataTransferException) to report the results of the transfer.| Constructor and Description | 
|---|
| MetadataDownload()Creates a new uninitialized download. | 
| MetadataDownload(org.eclipse.aether.metadata.Metadata metadata,
                                String context,
                                File file,
                                String checksumPolicy)Creates a new download with the specified properties. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getChecksumPolicy()Gets the checksum policy for this transfer. | 
| List<org.eclipse.aether.repository.RemoteRepository> | getRepositories()Gets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. | 
| String | getRequestContext()Gets the context of this transfer. | 
| MetadataDownload | setChecksumPolicy(String checksumPolicy)Sets the checksum policy for this transfer. | 
| MetadataDownload | setException(org.eclipse.aether.transfer.MetadataTransferException exception)Sets the exception that occurred during the transfer. | 
| MetadataDownload | setFile(File file)Sets the local file the metadata is downloaded to or uploaded from. | 
| MetadataDownload | setListener(org.eclipse.aether.transfer.TransferListener listener)Sets the listener that is to be notified during the transfer. | 
| MetadataDownload | setMetadata(org.eclipse.aether.metadata.Metadata metadata)Sets the metadata to transfer. | 
| MetadataDownload | setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories)Sets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. | 
| MetadataDownload | setRequestContext(String context)Sets the request context of this transfer. | 
| MetadataDownload | setTrace(org.eclipse.aether.RequestTrace trace)Sets the trace information that describes the higher level request/operation in which this transfer is issued. | 
| String | toString() | 
getException, getFile, getMetadatagetListener, getTracepublic MetadataDownload()
public MetadataDownload(org.eclipse.aether.metadata.Metadata metadata, String context, File file, 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(org.eclipse.aether.metadata.Metadata metadata)
MetadataTransfersetMetadata in class MetadataTransfermetadata - The metadata, may be null.null.public MetadataDownload setFile(File file)
MetadataTransfersetFile in class MetadataTransferfile - The local file, may be null.null.public String getChecksumPolicy()
null.public MetadataDownload setChecksumPolicy(String checksumPolicy)
checksumPolicy - The checksum policy, may be null.null.public String getRequestContext()
null.public MetadataDownload setRequestContext(String context)
context - The context id, may be null.null.public List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
null.public MetadataDownload setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories)
repositories - The remote repositories being aggregated, may be null.null.public MetadataDownload setException(org.eclipse.aether.transfer.MetadataTransferException exception)
MetadataTransfersetException in class MetadataTransferexception - The exception, may be null to denote a successful transfer.null.public MetadataDownload setListener(org.eclipse.aether.transfer.TransferListener listener)
Transferlistener - The transfer listener to notify, may be null if none.null.public MetadataDownload setTrace(org.eclipse.aether.RequestTrace trace)
Transfertrace - The trace information about the higher level operation, may be null.null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.