|
||||||||||
| 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.MetadataTransfer
org.sonatype.aether.spi.connector.MetadataUpload
public class MetadataUpload
An upload of metadata to a remote repository. A repository connector processing this upload has to use
Transfer.setState(State) and setException(MetadataTransferException) 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 | |
|---|---|
MetadataUpload()
Creates a new uninitialized upload. |
|
MetadataUpload(Metadata metadata,
File file)
Creates a new upload with the specified properties. |
|
| Method Summary | |
|---|---|
MetadataUpload |
setException(MetadataTransferException exception)
Sets the exception that occurred during the transfer. |
MetadataUpload |
setFile(File file)
Sets the local file the metadata is downloaded to or uploaded from. |
MetadataUpload |
setMetadata(Metadata metadata)
Sets the metadata to transfer. |
MetadataUpload |
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.MetadataTransfer |
|---|
getException, getFile, getMetadata |
| 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 MetadataUpload()
public MetadataUpload(Metadata metadata,
File file)
metadata - The metadata to upload, may be null.file - The local file to upload the metadata from, may be null.| Method Detail |
|---|
public MetadataUpload setMetadata(Metadata metadata)
MetadataTransfer
setMetadata in class MetadataTransfermetadata - The metadata, may be null.
null.public MetadataUpload setFile(File file)
MetadataTransfer
setFile in class MetadataTransferfile - The local file, may be null.
null.public MetadataUpload setException(MetadataTransferException exception)
MetadataTransfer
setException in class MetadataTransferexception - The exception, may be null to denote a successful transfer.
null.public MetadataUpload 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 | |||||||||