Package org.eclipse.aether.spi.connector
Class ArtifactUpload
java.lang.Object
org.eclipse.aether.spi.connector.Transfer
org.eclipse.aether.spi.connector.ArtifactTransfer
org.eclipse.aether.spi.connector.ArtifactUpload
An upload of an artifact to a remote repository. A repository connector processing this upload has to use
setException(ArtifactTransferException)
to report the results of the transfer.-
Constructor Summary
ConstructorDescriptionCreates a new uninitialized upload.ArtifactUpload
(Artifact artifact, File file) Creates a new upload with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionsetArtifact
(Artifact artifact) Sets the artifact to transfer.setException
(ArtifactTransferException exception) Sets the exception that occurred during the transfer.Sets the local file the artifact is downloaded to or uploaded from.setListener
(TransferListener listener) setTrace
(RequestTrace trace) toString()
Methods inherited from class org.eclipse.aether.spi.connector.ArtifactTransfer
getArtifact, getException, getFile
Methods inherited from class org.eclipse.aether.spi.connector.Transfer
getListener, getTrace
-
Constructor Details
-
ArtifactUpload
public ArtifactUpload()Creates a new uninitialized upload. -
ArtifactUpload
Creates a new upload with the specified properties.- Parameters:
artifact
- The artifact to upload, may benull
.file
- The local file to upload the artifact from, may benull
.
-
-
Method Details
-
setArtifact
Description copied from class:ArtifactTransfer
Sets the artifact to transfer.- Overrides:
setArtifact
in classArtifactTransfer
- Parameters:
artifact
- The artifact, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
setFile
Description copied from class:ArtifactTransfer
Sets the local file the artifact is downloaded to or uploaded from.- Overrides:
setFile
in classArtifactTransfer
- Parameters:
file
- The local file, may benull
.- Returns:
- This transfer for chaining, never
null
.
-
setException
Description copied from class:ArtifactTransfer
Sets the exception that occurred during the transfer.- Overrides:
setException
in classArtifactTransfer
- Parameters:
exception
- The exception, may benull
to denote a successful transfer.- Returns:
- This transfer for chaining, never
null
.
-
setListener
-
setTrace
-
toString
-