|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.spi.connector.Transfer
org.sonatype.aether.spi.connector.ArtifactTransfer
org.sonatype.aether.spi.connector.ArtifactUpload
public class ArtifactUpload
An upload of an artifact to a remote repository. A repository connector processing this upload has to use
Transfer.setState(State) and setException(ArtifactTransferException) to report the results of the transfer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.sonatype.aether.spi.connector.Transfer |
|---|
Transfer.State |
| Constructor Summary | |
|---|---|
ArtifactUpload()
Creates a new uninitialized upload. |
|
ArtifactUpload(Artifact artifact,
File file)
Creates a new upload with the specified properties. |
|
| Method Summary | |
|---|---|
ArtifactUpload |
setArtifact(Artifact artifact)
Sets the artifact to transfer. |
ArtifactUpload |
setException(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 |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this transfer is issued. |
String |
toString()
|
| Methods inherited from class org.sonatype.aether.spi.connector.ArtifactTransfer |
|---|
getArtifact, getException, getFile |
| Methods inherited from class org.sonatype.aether.spi.connector.Transfer |
|---|
getState, getTrace, setState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArtifactUpload()
public ArtifactUpload(Artifact artifact,
File file)
artifact - The artifact to upload, may be null.file - The local file to upload the artifact from, may be null.| Method Detail |
|---|
public ArtifactUpload setArtifact(Artifact artifact)
ArtifactTransfer
setArtifact in class ArtifactTransferartifact - The artifact, may be null.
null.public ArtifactUpload setFile(File file)
ArtifactTransfer
setFile in class ArtifactTransferfile - The local file, may be null.
null.public ArtifactUpload setException(ArtifactTransferException exception)
ArtifactTransfer
setException in class ArtifactTransferexception - The exception, may be null to denote a successful transfer.
null.public ArtifactUpload setTrace(RequestTrace trace)
Transfer
setTrace in class Transfertrace - The trace information about the higher level operation, may be null.
null.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||