| File was renamed from opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartDownloader.java |
| | |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.installer.webstart; |
| | | package org.opends.quicksetup.webstart; |
| | | |
| | | import java.io.IOException; |
| | | import java.net.MalformedURLException; |
| | |
| | | |
| | | private Status status = Status.DOWNLOADING; |
| | | |
| | | private String summary = null; |
| | | |
| | | /** |
| | | * This enumeration contains the different Status on which |
| | | * the dowloading process of the jars can be. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a default instance. |
| | | */ |
| | | public WebStartDownloader() { |
| | | this.summary = getMsg("downloading"); |
| | | } |
| | | |
| | | /** |
| | | * Starts the downloading of the jar files. If forceDownload is set to |
| | | * <CODE>true</CODE> the files will be re-downloaded even if they already |
| | | * are on cache. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Gets a summary message of the downloader's current progress. |
| | | * @return String for showing the user progress |
| | | */ |
| | | public String getSummary() { |
| | | return this.summary; |
| | | } |
| | | |
| | | /** |
| | | * Sets a summary message of the downloader's current progress. |
| | | * @param summary String for showing the user progress |
| | | */ |
| | | public void setSummary(String summary) { |
| | | this.summary = summary; |
| | | } |
| | | |
| | | /** |
| | | * Returns <CODE>true</CODE> if the install is finished and |
| | | * <CODE>false</CODE> otherwise. |
| | | * @return <CODE>true</CODE> if the install is finished and |
| | |
| | | { |
| | | return ResourceProvider.getInstance().getMsg(key, args); |
| | | } |
| | | |
| | | private String getMsg(String key) |
| | | { |
| | | return ResourceProvider.getInstance().getMsg(key); |
| | | } |
| | | |
| | | } |