1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-01 16:46:51 +02:00

Statemachine for installation wizard (WIP)

This commit is contained in:
snowleo
2011-10-23 21:45:01 +02:00
parent aa922c5b67
commit 9433acf689
14 changed files with 471 additions and 41 deletions

View File

@@ -22,7 +22,11 @@ public class GetFile
public GetFile(final String urlString) throws MalformedURLException, IOException
{
final URL url = new URL(urlString);
this(new URL(urlString));
}
public GetFile(final URL url) throws IOException
{
this.connection = url.openConnection();
this.connection.setConnectTimeout(1000);
this.connection.setReadTimeout(5000);