de.flapdoodle.embed.process.store
Class Downloader

java.lang.Object
  extended by de.flapdoodle.embed.process.store.Downloader

public class Downloader
extends Object

Class for downloading runtime


Field Summary
static int BUFFER_LENGTH
           
static int CONNECTION_TIMEOUT
           
static int DEFAULT_CONTENT_LENGTH
           
static int READ_COUNT_MULTIPLIER
           
static int READ_TIMEOUT
           
 
Method Summary
static File download(IDownloadConfig runtime, Distribution distribution)
           
static String getDownloadUrl(IDownloadConfig runtime, Distribution distribution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_TIMEOUT

public static final int CONNECTION_TIMEOUT
See Also:
Constant Field Values

READ_TIMEOUT

public static final int READ_TIMEOUT
See Also:
Constant Field Values

DEFAULT_CONTENT_LENGTH

public static final int DEFAULT_CONTENT_LENGTH
See Also:
Constant Field Values

BUFFER_LENGTH

public static final int BUFFER_LENGTH
See Also:
Constant Field Values

READ_COUNT_MULTIPLIER

public static final int READ_COUNT_MULTIPLIER
See Also:
Constant Field Values
Method Detail

getDownloadUrl

public static String getDownloadUrl(IDownloadConfig runtime,
                                    Distribution distribution)

download

public static File download(IDownloadConfig runtime,
                            Distribution distribution)
                     throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.