Package org.eclipse.aether.spi.connector
Class MetadataDownload
java.lang.Object
org.eclipse.aether.spi.connector.Transfer
org.eclipse.aether.spi.connector.MetadataTransfer
org.eclipse.aether.spi.connector.MetadataDownload
A download of metadata from a remote repository. A repository connector processing this download has to use
 
setException(MetadataTransferException) to report the results of the transfer.- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new uninitialized download.MetadataDownload(org.eclipse.aether.metadata.Metadata metadata, String context, File file, String checksumPolicy) Deprecated.MetadataDownload(org.eclipse.aether.metadata.Metadata metadata, String context, Path path, String checksumPolicy) Creates a new download with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionGets the checksum policy for this transfer.List<org.eclipse.aether.repository.RemoteRepository> Gets the remote repositories that are being aggregated by the physically contacted remote repository (i.e.Gets the context of this transfer.setChecksumPolicy(String checksumPolicy) Sets the checksum policy for this transfer.setException(org.eclipse.aether.transfer.MetadataTransferException exception) Sets the exception that occurred during the transfer.Deprecated.setListener(org.eclipse.aether.transfer.TransferListener listener) setMetadata(org.eclipse.aether.metadata.Metadata metadata) Sets the metadata to transfer.Sets the local file the metadata is downloaded to or uploaded from.setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories) Sets the remote repositories that are being aggregated by the physically contacted remote repository (i.e.setRequestContext(String context) Sets the request context of this transfer.setTrace(org.eclipse.aether.RequestTrace trace) toString()Methods inherited from class org.eclipse.aether.spi.connector.MetadataTransfergetException, getFile, getMetadata, getPathMethods inherited from class org.eclipse.aether.spi.connector.TransfergetListener, getTrace
- 
Constructor Details- 
MetadataDownloadpublic MetadataDownload()Creates a new uninitialized download.
- 
MetadataDownload@Deprecated public MetadataDownload(org.eclipse.aether.metadata.Metadata metadata, String context, File file, String checksumPolicy) Deprecated.UseMetadataDownload(Metadata, String, Path, String)instead.Creates a new download with the specified properties.- Parameters:
- 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.
 
- 
MetadataDownloadpublic MetadataDownload(org.eclipse.aether.metadata.Metadata metadata, String context, Path path, String checksumPolicy) Creates a new download with the specified properties.- Parameters:
- metadata- The metadata to download, may be- null.
- context- The context in which this download is performed, may be- null.
- path- The local file to download the metadata to, may be- null.
- checksumPolicy- The checksum policy, may be- null.
- Since:
- 2.0.0
 
 
- 
- 
Method Details- 
setMetadataDescription copied from class:MetadataTransferSets the metadata to transfer.- Overrides:
- setMetadatain class- MetadataTransfer
- Parameters:
- metadata- The metadata, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setFileDeprecated.Description copied from class:MetadataTransferSets the local file the metadata is downloaded to or uploaded from.- Overrides:
- setFilein class- MetadataTransfer
- Parameters:
- file- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setPathDescription copied from class:MetadataTransferSets the local file the metadata is downloaded to or uploaded from.- Overrides:
- setPathin class- MetadataTransfer
- Parameters:
- path- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
getChecksumPolicyGets the checksum policy for this transfer.- Returns:
- The checksum policy, never null.
 
- 
setChecksumPolicySets the checksum policy for this transfer.- Parameters:
- checksumPolicy- The checksum policy, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
getRequestContextGets the context of this transfer.- Returns:
- The context id, never null.
 
- 
setRequestContextSets the request context of this transfer.- Parameters:
- context- The context id, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
getRepositoriesGets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. a repository manager).- Returns:
- The remote repositories being aggregated, never null.
 
- 
setRepositoriespublic 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. a repository manager).- Parameters:
- repositories- The remote repositories being aggregated, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setExceptionpublic MetadataDownload setException(org.eclipse.aether.transfer.MetadataTransferException exception) Description copied from class:MetadataTransferSets the exception that occurred during the transfer.- Overrides:
- setExceptionin class- MetadataTransfer
- Parameters:
- exception- The exception, may be- nullto denote a successful transfer.
- Returns:
- This transfer for chaining, never null.
 
- 
setListener
- 
setTrace
- 
toString
 
- 
MetadataDownload(Metadata, String, Path, String)instead.