Class DownloadCommand

java.lang.Object
com.liferay.portal.tools.bundle.support.commands.BaseCommand
com.liferay.portal.tools.bundle.support.commands.DownloadCommand
All Implemented Interfaces:
Command, StreamLogger
Direct Known Subclasses:
InitBundleCommand

public class DownloadCommand extends BaseCommand implements StreamLogger
  • Constructor Details

    • DownloadCommand

      public DownloadCommand()
  • Method Details

    • execute

      public void execute() throws Exception
      Specified by:
      execute in interface Command
      Throws:
      Exception
    • getCacheDir

      public File getCacheDir()
    • getConnectionTimeout

      public int getConnectionTimeout()
    • getDownloadPath

      public Path getDownloadPath()
    • getPassword

      public String getPassword()
    • getTokenFile

      public File getTokenFile()
    • getUrl

      public URL getUrl()
    • getUserName

      public String getUserName()
    • isQuiet

      public boolean isQuiet()
    • isToken

      public boolean isToken()
    • onCompleted

      public void onCompleted()
      Specified by:
      onCompleted in interface StreamLogger
    • onProgress

      public void onProgress(long completed, long length)
      Specified by:
      onProgress in interface StreamLogger
    • onStarted

      public void onStarted()
      Specified by:
      onStarted in interface StreamLogger
    • setCacheDir

      public void setCacheDir(File cacheDir)
    • setConnectionTimeout

      public void setConnectionTimeout(int connectionTimeout)
    • setPassword

      public void setPassword(String password)
    • setQuiet

      public void setQuiet(boolean quiet)
    • setToken

      public void setToken(boolean token)
    • setTokenFile

      public void setTokenFile(File tokenFile)
    • setUrl

      public void setUrl(URL url)
    • setUserName

      public void setUserName(String userName)
    • onProgress

      protected void onProgress(String message)
    • onStarted

      protected void onStarted(String message)