Class DefaultDownloader

  • All Implemented Interfaces:
    Downloader

    public class DefaultDownloader
    extends java.lang.Object
    implements Downloader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void downloadUrlToFile​(java.lang.String url, java.io.File file)
      Download the content at the URL given and save it locally.
      • Methods inherited from class java.lang.Object

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

      • DefaultDownloader

        public DefaultDownloader()
    • Method Detail

      • downloadUrlToFile

        public void downloadUrlToFile​(java.lang.String url,
                                      java.io.File file)
                               throws java.io.IOException
        Description copied from interface: Downloader
        Download the content at the URL given and save it locally. This interface is used to switch between HTTP connector. In the context of Maven, the connection need to pass through Maven API in order to benefit from its proxy configuration. The Maven plugin would otherwise not work on enterprise network.
        Specified by:
        downloadUrlToFile in interface Downloader
        Parameters:
        url - URL to request
        file - File where the content will be saved.
        Throws:
        java.io.IOException