public abstract class ArtifactTransfer extends Transfer
| Modifier and Type | Field and Description |
|---|---|
private Artifact |
artifact |
private ArtifactTransferException |
exception |
private java.io.File |
file |
| Constructor and Description |
|---|
ArtifactTransfer() |
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact being transferred.
|
ArtifactTransferException |
getException()
Gets the exception that occurred during the transfer (if any).
|
java.io.File |
getFile()
Gets the local file the artifact is downloaded to or uploaded from.
|
ArtifactTransfer |
setArtifact(Artifact artifact)
Sets the artifact to transfer.
|
ArtifactTransfer |
setException(ArtifactTransferException exception)
Sets the exception that occurred during the transfer.
|
ArtifactTransfer |
setFile(java.io.File file)
Sets the local file the artifact is downloaded to or uploaded from.
|
getListener, getTrace, setListener, setTraceprivate Artifact artifact
private java.io.File file
private ArtifactTransferException exception
public Artifact getArtifact()
null if not set.public ArtifactTransfer setArtifact(Artifact artifact)
artifact - The artifact, may be null.null.public java.io.File getFile()
null if not set.public ArtifactTransfer setFile(java.io.File file)
file - The local file, may be null.null.public ArtifactTransferException getException()
getException in class Transfernull if the transfer was successful.public ArtifactTransfer setException(ArtifactTransferException exception)
exception - The exception, may be null to denote a successful transfer.null.