mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
25.48.2007 30c61f6cdc2906798f04ed4111bca50c92ef5404
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/webstart/WebStartDownloader.java
File was renamed from opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartDownloader.java
@@ -25,7 +25,7 @@
 *      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;
@@ -69,6 +69,8 @@
  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.
@@ -91,6 +93,13 @@
    }
  /**
   * 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.
@@ -147,6 +156,22 @@
  }
  /**
   * 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
@@ -421,4 +446,10 @@
  {
    return ResourceProvider.getInstance().getMsg(key, args);
  }
  private String getMsg(String key)
  {
    return ResourceProvider.getInstance().getMsg(key);
  }
}