|
||||||||||
| 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.MetadataDownload
public class MetadataDownload
A download of metadata from a remote repository. A repository connector processing this download 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 | |
|---|---|
MetadataDownload()
Creates a new uninitialized download. |
|
MetadataDownload(Metadata metadata,
String context,
File file,
String checksumPolicy)
Creates a new download with the specified properties. |
|
| Method Summary | |
|---|---|
String |
getChecksumPolicy()
Gets the checksum policy for this transfer. |
List<RemoteRepository> |
getRepositories()
Gets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. |
String |
getRequestContext()
Gets the context of this transfer. |
MetadataDownload |
setChecksumPolicy(String checksumPolicy)
Sets the checksum policy for this transfer. |
MetadataDownload |
setException(MetadataTransferException exception)
Sets the exception that occurred during the transfer. |
MetadataDownload |
setFile(File file)
Sets the local file the metadata is downloaded to or uploaded from. |
MetadataDownload |
setMetadata(Metadata metadata)
Sets the metadata to transfer. |
MetadataDownload |
setRepositories(List<RemoteRepository> repositories)
Sets the remote repositories that are being aggregated by the physically contacted remote repository (i.e. |
MetadataDownload |
setRequestContext(String context)
Sets the request context of this transfer. |
MetadataDownload |
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 MetadataDownload()
public MetadataDownload(Metadata metadata,
String context,
File file,
String checksumPolicy)
metadata - The metadata to download, may be null.context - The context in which this download is performed, may be null.file - The local file to download the metadata to, may be null.checksumPolicy - The checksum policy, may be null.| Method Detail |
|---|
public MetadataDownload setMetadata(Metadata metadata)
MetadataTransfer
setMetadata in class MetadataTransfermetadata - The metadata, may be null.
null.public MetadataDownload setFile(File file)
MetadataTransfer
setFile in class MetadataTransferfile - The local file, may be null.
null.public String getChecksumPolicy()
null.public MetadataDownload setChecksumPolicy(String checksumPolicy)
checksumPolicy - The checksum policy, may be null.
null.public String getRequestContext()
null.public MetadataDownload setRequestContext(String context)
context - The context id, may be null.
null.public List<RemoteRepository> getRepositories()
null.public MetadataDownload setRepositories(List<RemoteRepository> repositories)
repositories - The remote repositories being aggregated, may be null.
null.public MetadataDownload setException(MetadataTransferException exception)
MetadataTransfer
setException in class MetadataTransferexception - The exception, may be null to denote a successful transfer.
null.public MetadataDownload 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 | |||||||||