Package org.eclipse.aether.spi.connector
Class MetadataUpload
java.lang.Object
org.eclipse.aether.spi.connector.Transfer
org.eclipse.aether.spi.connector.MetadataTransfer
org.eclipse.aether.spi.connector.MetadataUpload
An upload of metadata to a remote repository. A repository connector processing this upload has to use
 
setException(MetadataTransferException) to report the results of the transfer.- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new uninitialized upload.MetadataUpload(Metadata metadata, File file) Deprecated.MetadataUpload(Metadata metadata, Path path) Creates a new upload with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionsetException(MetadataTransferException exception) Sets the exception that occurred during the transfer.Deprecated.setListener(TransferListener listener) setMetadata(Metadata metadata) Sets the metadata to transfer.Sets the local file the metadata is downloaded to or uploaded from.setTrace(RequestTrace trace) toString()Methods inherited from class org.eclipse.aether.spi.connector.MetadataTransfergetException, getFile, getMetadata, getPathMethods inherited from class org.eclipse.aether.spi.connector.TransfergetListener, getTrace
- 
Constructor Details- 
MetadataUploadpublic MetadataUpload()Creates a new uninitialized upload.
- 
MetadataUploadDeprecated.UseMetadataUpload(Metadata, Path)instead.Creates a new upload with the specified properties.- Parameters:
- metadata- The metadata to upload, may be- null.
- file- The local file to upload the metadata from, may be- null.
 
- 
MetadataUploadCreates a new upload with the specified properties.- Parameters:
- metadata- The metadata to upload, may be- null.
- path- The local file to upload the metadata from, may be- null.
- Since:
- 2.0.0
 
 
- 
- 
Method Details- 
setMetadataDescription copied from class:MetadataTransferSets the metadata to transfer.- Overrides:
- setMetadatain class- MetadataTransfer
- Parameters:
- metadata- The metadata, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setFileDeprecated.Description copied from class:MetadataTransferSets the local file the metadata is downloaded to or uploaded from.- Overrides:
- setFilein class- MetadataTransfer
- Parameters:
- file- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setPathDescription copied from class:MetadataTransferSets the local file the metadata is downloaded to or uploaded from.- Overrides:
- setPathin class- MetadataTransfer
- Parameters:
- path- The local file, may be- null.
- Returns:
- This transfer for chaining, never null.
 
- 
setExceptionDescription copied from class:MetadataTransferSets the exception that occurred during the transfer.- Overrides:
- setExceptionin class- MetadataTransfer
- Parameters:
- exception- The exception, may be- nullto denote a successful transfer.
- Returns:
- This transfer for chaining, never null.
 
- 
setListener
- 
setTrace
- 
toString
 
- 
MetadataUpload(Metadata, Path)instead.