Class DefaultDownloadManager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROLE_HINT
      Role hint.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultDownloadManager()
      Deprecated.
      The no-arg constructor creates a DefaultDownloadManager that is completely non-functional and cannot download anything without a WagonManager.
      DefaultDownloadManager​(org.apache.maven.artifact.manager.WagonManager wagonManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup()
      Deletes the temporary files downloaded through this manager and empties its cache, so that subsequent requests download again.
      java.io.File download​(java.lang.String url, java.util.List<org.apache.maven.wagon.events.TransferListener> transferListeners, MessageHolder messageHolder)
      java.io.File download​(java.lang.String url, MessageHolder messageHolder)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • DefaultDownloadManager

        @Deprecated
        public DefaultDownloadManager()
        Deprecated.
        The no-arg constructor creates a DefaultDownloadManager that is completely non-functional and cannot download anything without a WagonManager. Use DefaultDownloadManager(WagonManager) instead.
        Create an instance of the DefaultDownloadManager.
      • DefaultDownloadManager

        public DefaultDownloadManager​(org.apache.maven.artifact.manager.WagonManager wagonManager)
        Parameters:
        wagonManager - WagonManager
    • Method Detail

      • 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.