Package org.eclipse.aether.spi.connector
Class MetadataUpload
java.lang.Object
org.eclipse.aether.spi.connector.Transfer
org.eclipse.aether.spi.connector.MetadataTransfer
org.eclipse.aether.spi.connector.MetadataUpload
An upload of metadata to a remote repository. A repository connector processing this upload has to use
setException(MetadataTransferException)
to report the results of the transfer.-
Constructor Summary
ConstructorDescriptionCreates a new uninitialized upload.MetadataUpload
(org.eclipse.aether.metadata.Metadata metadata, File file) Deprecated.MetadataUpload
(org.eclipse.aether.metadata.Metadata metadata, Path path) Creates a new upload with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionsetException
(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.setTrace
(org.eclipse.aether.RequestTrace trace) toString()
Methods inherited from class org.eclipse.aether.spi.connector.MetadataTransfer
getException, getFile, getMetadata, getPath
Methods inherited from class org.eclipse.aether.spi.connector.Transfer
getListener, getTrace
-
Constructor Details
-
MetadataUpload
public MetadataUpload()Creates a new uninitialized upload. -
MetadataUpload
Deprecated.UseMetadataUpload(Metadata, Path)
instead.Creates a new upload with the specified properties.- Parameters:
metadata
- The metadata to upload, may benull
.file
- The local file to upload the metadata from, may benull
.
-
MetadataUpload
Creates a new upload with the specified properties.- Parameters:
metadata
- The metadata to upload, may benull
.path
- The local file to upload the metadata from, may benull
.- Since:
- 2.0.0
-
-
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
Deprecated.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
.
-
setPath
Description copied from class:MetadataTransfer
Sets the local file the metadata is downloaded to or uploaded from.- Overrides:
setPath
in classMetadataTransfer
- Parameters:
path
- The local file, 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
-
setTrace
-
toString
-
MetadataUpload(Metadata, Path)
instead.