Class DefaultDownloadManager
java.lang.Object
org.apache.maven.shared.io.download.DefaultDownloadManager
- All Implemented Interfaces:
DownloadManager
The Implementation of the
DownloadManager-
Field Summary
FieldsFields inherited from interface org.apache.maven.shared.io.download.DownloadManager
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultDownloadManager(org.apache.maven.artifact.manager.WagonManager wagonManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Deletes the temporary files downloaded through this manager and empties its cache, so that subsequent requests download again.download(String url, List<org.apache.maven.wagon.events.TransferListener> transferListeners, MessageHolder messageHolder) download(String url, MessageHolder messageHolder)
-
Field Details
-
ROLE_HINT
Role hint.- See Also:
-
-
Constructor Details
-
DefaultDownloadManager
Deprecated.The no-arg constructor creates a DefaultDownloadManager that is completely non-functional and cannot download anything without aWagonManager. UseDefaultDownloadManager(WagonManager)instead.Create an instance of theDefaultDownloadManager. -
DefaultDownloadManager
public DefaultDownloadManager(org.apache.maven.artifact.manager.WagonManager wagonManager) - Parameters:
wagonManager-WagonManager
-
-
Method Details
-
cleanup
public void cleanup()Deletes the temporary files downloaded through this manager and empties its cache, so that subsequent requests download again. Calling this is optional: the files are removed when the JVM exits anyway. It is worth calling in a long-lived JVM, such as a Maven daemon or an embedded build, once the downloaded files are no longer needed. Do not call it while a download is in progress on another thread, as that download writes into the directory being removed.
-
WagonManager.