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 SummaryConstructorsConstructorDescriptionCreates a new uninitialized upload.ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, File file) Deprecated.ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, Path path) Creates a new upload with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionsetArtifact(org.eclipse.aether.artifact.Artifact artifact) Sets the artifact to transfer.setException(org.eclipse.aether.transfer.ArtifactTransferException exception) Sets the exception that occurred during the transfer.Deprecated.setListener(org.eclipse.aether.transfer.TransferListener listener) Sets the local file the artifact is downloaded to or uploaded from.setTrace(org.eclipse.aether.RequestTrace trace) toString()Methods inherited from class org.eclipse.aether.spi.connector.ArtifactTransfergetArtifact, getException, getFile, getPathMethods inherited from class org.eclipse.aether.spi.connector.TransfergetListener, getTrace
- 
Constructor Details- 
ArtifactUploadpublic ArtifactUpload()Creates a new uninitialized upload.
- 
ArtifactUploadDeprecated.UseArtifactUpload(Artifact, Path)instead.Creates a new upload with the specified properties.- Parameters:
- artifact- The artifact to upload, may be- null.
- file- The local file to upload the artifact from, may be- null.
 
- 
ArtifactUploadCreates a new upload with the specified properties.- Parameters:
- artifact- The artifact to upload, may be- null.
- path- The local file to upload the artifact from, may be- null.
- Since:
- 2.0.0
 
 
- 
- 
Method Details- 
setArtifactDescription copied from class:ArtifactTransferSets the artifact to transfer.- Overrides:
- setArtifactin class- ArtifactTransfer
- Parameters:
- artifact- The artifact, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setFileDeprecated.Description copied from class:ArtifactTransferSets the local file the artifact is downloaded to or uploaded from.- Overrides:
- setFilein class- ArtifactTransfer
- Parameters:
- file- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setPathDescription copied from class:ArtifactTransferSets the local file the artifact is downloaded to or uploaded from.- Overrides:
- setPathin class- ArtifactTransfer
- Parameters:
- path- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setExceptionDescription copied from class:ArtifactTransferSets the exception that occurred during the transfer.- Overrides:
- setExceptionin class- ArtifactTransfer
- Parameters:
- exception- The exception, may be- nullto denote a successful transfer.
- Returns:
- This transfer for chaining, never null.
 
- 
setListener
- 
setTrace
- 
toString
 
- 
ArtifactUpload(Artifact, Path)instead.