public final class ArtifactUpload extends ArtifactTransfer
setException(ArtifactTransferException)
to report the results of the transfer.Constructor and Description |
---|
ArtifactUpload()
Creates a new uninitialized upload.
|
ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact,
File file)
Creates a new upload with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
ArtifactUpload |
setArtifact(org.eclipse.aether.artifact.Artifact artifact)
Sets the artifact to transfer.
|
ArtifactUpload |
setException(org.eclipse.aether.transfer.ArtifactTransferException exception)
Sets the exception that occurred during the transfer.
|
ArtifactUpload |
setFile(File file)
Sets the local file the artifact is downloaded to or uploaded from.
|
ArtifactUpload |
setListener(org.eclipse.aether.transfer.TransferListener listener)
Sets the listener that is to be notified during the transfer.
|
ArtifactUpload |
setTrace(org.eclipse.aether.RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this transfer is issued.
|
String |
toString() |
getArtifact, getException, getFile
getListener, getTrace
public ArtifactUpload()
public ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, File file)
artifact
- The artifact to upload, may be null
.file
- The local file to upload the artifact from, may be null
.public ArtifactUpload setArtifact(org.eclipse.aether.artifact.Artifact artifact)
ArtifactTransfer
setArtifact
in class ArtifactTransfer
artifact
- The artifact, may be null
.null
.public ArtifactUpload setFile(File file)
ArtifactTransfer
setFile
in class ArtifactTransfer
file
- The local file, may be null
.null
.public ArtifactUpload setException(org.eclipse.aether.transfer.ArtifactTransferException exception)
ArtifactTransfer
setException
in class ArtifactTransfer
exception
- The exception, may be null
to denote a successful transfer.null
.public ArtifactUpload setListener(org.eclipse.aether.transfer.TransferListener listener)
Transfer
listener
- The transfer listener to notify, may be null
if none.null
.public ArtifactUpload setTrace(org.eclipse.aether.RequestTrace trace)
Transfer
trace
- The trace information about the higher level operation, may be null
.null
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.