it.freedom.util
Class FetchHttpFiles

java.lang.Object
  extended by it.freedom.util.FetchHttpFiles

public class FetchHttpFiles
extends java.lang.Object


Nested Class Summary
 class FetchHttpFiles.Downloader
           
 
Constructor Summary
FetchHttpFiles()
           
 
Method Summary
static boolean checkVersion(Plugin plugin, Config server)
           
static boolean download(java.net.URL url, java.io.File destFolder)
           
static void downloadAll(java.net.URL httpUrl, java.io.File destFolder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchHttpFiles

public FetchHttpFiles()
Method Detail

downloadAll

public static void downloadAll(java.net.URL httpUrl,
                               java.io.File destFolder)

download

public static boolean download(java.net.URL url,
                               java.io.File destFolder)
                        throws java.lang.Exception
Throws:
java.lang.Exception

checkVersion

public static boolean checkVersion(Plugin plugin,
                                   Config server)