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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new uninitialized download.MetadataDownload
(Metadata metadata, String context, File file, String checksumPolicy) Creates a new download with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionGets the checksum policy for this transfer.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
(MetadataTransferException exception) Sets the exception that occurred during the transfer.Sets the local file the metadata is downloaded to or uploaded from.setListener
(TransferListener listener) Sets the listener that is to be notified during the transfer.setMetadata
(Metadata metadata) Sets the metadata to transfer.setRepositories
(List<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
(RequestTrace trace) Sets the trace information that describes the higher level request/operation in which this transfer is issued.toString()
Methods inherited from class org.eclipse.aether.spi.connector.MetadataTransfer
getException, getFile, getMetadata
Methods inherited from class org.eclipse.aether.spi.connector.Transfer
getListener, getTrace
-
Field Details
-
checksumPolicy
-
context
-
repositories
-
-
Constructor Details
-
MetadataDownload
public MetadataDownload()Creates a new uninitialized download. -
MetadataDownload
Creates a new download with the specified properties.- Parameters:
metadata
- The metadata to download, may benull
.context
- The context in which this download is performed, may benull
.file
- The local file to download the metadata to, may benull
.checksumPolicy
- The checksum policy, may benull
.
-
-
Method Details
-
setMetadata
Description copied from class:MetadataTransfer
Sets the metadata to transfer.- Overrides:
setMetadata
in classMetadataTransfer
- Parameters:
metadata
- The metadata, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
setFile
Description copied from class:MetadataTransfer
Sets the local file the metadata is downloaded to or uploaded from.- Overrides:
setFile
in classMetadataTransfer
- Parameters:
file
- The local file, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
getChecksumPolicy
Gets the checksum policy for this transfer.- Returns:
- The checksum policy, never
null
.
-
setChecksumPolicy
Sets the checksum policy for this transfer.- Parameters:
checksumPolicy
- The checksum policy, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
getRequestContext
Gets the context of this transfer.- Returns:
- The context id, never
null
.
-
setRequestContext
Sets the request context of this transfer.- Parameters:
context
- The context id, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
getRepositories
Gets 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
.
-
setRepositories
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 benull
.- Returns:
- This transfer for chaining, never
null
.
-
setException
Description copied from class:MetadataTransfer
Sets the exception that occurred during the transfer.- Overrides:
setException
in classMetadataTransfer
- Parameters:
exception
- The exception, may benull
to denote a successful transfer.- Returns:
- This transfer for chaining, never
null
.
-
setListener
Description copied from class:Transfer
Sets the listener that is to be notified during the transfer.- Overrides:
setListener
in classTransfer
- Parameters:
listener
- The transfer listener to notify, may benull
if none.- Returns:
- This transfer for chaining, never
null
.
-
setTrace
Description copied from class:Transfer
Sets the trace information that describes the higher level request/operation in which this transfer is issued. -
toString
-