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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()intgetUrl()booleanisQuiet()booleanisToken()voidvoidonProgress(long completed, long length) protected voidonProgress(String message) voidprotected voidvoidsetCacheDir(File cacheDir) voidsetConnectionTimeout(int connectionTimeout) voidsetPassword(String password) voidsetQuiet(boolean quiet) voidsetToken(boolean token) voidsetTokenFile(File tokenFile) voidvoidsetUserName(String userName) Methods inherited from class com.liferay.portal.tools.bundle.support.commands.BaseCommand
getLiferayHomeDir, setLiferayHomeDir
-
Constructor Details
-
DownloadCommand
public DownloadCommand()
-
-
Method Details
-
execute
-
getCacheDir
-
getConnectionTimeout
public int getConnectionTimeout() -
getDownloadPath
-
getPassword
-
getTokenFile
-
getUrl
-
getUserName
-
isQuiet
public boolean isQuiet() -
isToken
public boolean isToken() -
onCompleted
public void onCompleted()- Specified by:
onCompletedin interfaceStreamLogger
-
onProgress
public void onProgress(long completed, long length) - Specified by:
onProgressin interfaceStreamLogger
-
onStarted
public void onStarted()- Specified by:
onStartedin interfaceStreamLogger
-
setCacheDir
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) -
setPassword
-
setQuiet
public void setQuiet(boolean quiet) -
setToken
public void setToken(boolean token) -
setTokenFile
-
setUrl
-
setUserName
-
onProgress
-
onStarted
-