|
||||||||||
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,
java.io.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(java.io.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. |
java.lang.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, java.io.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 MetadataTransfer
metadata
- The metadata, may be null
.
null
.public MetadataUpload setFile(java.io.File file)
MetadataTransfer
setFile
in class MetadataTransfer
file
- The local file, may be null
.
null
.public MetadataUpload setException(MetadataTransferException exception)
MetadataTransfer
setException
in class MetadataTransfer
exception
- The exception, may be null
to denote a successful transfer.
null
.public MetadataUpload setTrace(RequestTrace trace)
Transfer
setTrace
in class Transfer
trace
- The trace information about the higher level operation, may be null
.
null
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |