public final class MetadataUpload extends MetadataTransfer
setException(MetadataTransferException) to report the results of the transfer.| Constructor | Description |
|---|---|
MetadataUpload() |
Creates a new uninitialized upload.
|
MetadataUpload(org.eclipse.aether.metadata.Metadata metadata,
java.io.File file) |
Creates a new upload with the specified properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
MetadataUpload |
setException(org.eclipse.aether.transfer.MetadataTransferException exception) |
Sets the exception that occurred during the transfer.
|
MetadataUpload |
setFile(java.io.File file) |
Sets the local file the metadata is downloaded to or uploaded from.
|
MetadataUpload |
setListener(org.eclipse.aether.transfer.TransferListener listener) |
Sets the listener that is to be notified during the transfer.
|
MetadataUpload |
setMetadata(org.eclipse.aether.metadata.Metadata metadata) |
Sets the metadata to transfer.
|
MetadataUpload |
setTrace(org.eclipse.aether.RequestTrace trace) |
Sets the trace information that describes the higher level request/operation in which this transfer is issued.
|
java.lang.String |
toString() |
getException, getFile, getMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetListener, getTracepublic MetadataUpload()
public MetadataUpload(org.eclipse.aether.metadata.Metadata metadata, java.io.File file)
metadata - The metadata to upload, may be null.file - The local file to upload the metadata from, may be null.public MetadataUpload setMetadata(org.eclipse.aether.metadata.Metadata metadata)
MetadataTransfersetMetadata in class MetadataTransfermetadata - The metadata, may be null.null.public MetadataUpload setFile(java.io.File file)
MetadataTransfersetFile in class MetadataTransferfile - The local file, may be null.null.public MetadataUpload setException(org.eclipse.aether.transfer.MetadataTransferException exception)
MetadataTransfersetException in class MetadataTransferexception - The exception, may be null to denote a successful transfer.null.public MetadataUpload setListener(org.eclipse.aether.transfer.TransferListener listener)
Transferlistener - The transfer listener to notify, may be null if none.null.public MetadataUpload setTrace(org.eclipse.aether.RequestTrace trace)
Transfertrace - The trace information about the higher level operation, may be null.null.public java.lang.String toString()
toString in class java.lang.Object