public abstract class AbstractApplicationUpdaterAction extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION_KEY |
protected org.nuiton.config.ApplicationConfig |
config |
protected File |
currentDir |
static String |
HTTP_PROXY |
static String |
URL_KEY |
static String |
VERSION_KEY |
protected String |
vfsPropertiesUrl |
| Constructor and Description |
|---|
AbstractApplicationUpdaterAction(org.nuiton.config.ApplicationConfig config,
String vfsPropertiesUrl,
File currentDir) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getApplicationName(org.nuiton.config.ApplicationConfig config)
Retourne la liste des noms d'application se trouvant dans la
configuration
|
protected Map<String,String> |
getCurrentVersion(List<String> apps,
File dir)
Recherche pour chaque application la version courante
|
protected org.nuiton.config.ApplicationConfig |
getUpdaterConfig(org.apache.commons.vfs2.FileSystemOptions vfsConfig,
String vfsPropertiesUrl)
Return config prepared for os and arch
|
protected Map<String,ApplicationInfo> |
getVersions(org.nuiton.config.ApplicationConfig releaseConfig,
boolean allVersion,
File destDir) |
protected org.apache.commons.vfs2.FileSystemOptions |
getVFSConfig(org.nuiton.config.ApplicationConfig config)
Recupere le proxy http a utiliser pour les connexions reseaux
|
protected String |
toVfsURL(String path)
Converti le path en URL vfs2.
|
public static final String HTTP_PROXY
public static final String URL_KEY
public static final String AUTHENTICATION_KEY
public static final String VERSION_KEY
protected org.nuiton.config.ApplicationConfig config
protected String vfsPropertiesUrl
protected File currentDir
protected Map<String,ApplicationInfo> getVersions(org.nuiton.config.ApplicationConfig releaseConfig, boolean allVersion, File destDir)
protected String toVfsURL(String path)
path - protected org.nuiton.config.ApplicationConfig getUpdaterConfig(org.apache.commons.vfs2.FileSystemOptions vfsConfig,
String vfsPropertiesUrl)
throws Exception
Exceptionprotected org.apache.commons.vfs2.FileSystemOptions getVFSConfig(org.nuiton.config.ApplicationConfig config)
config - protected Map<String,String> getCurrentVersion(List<String> apps, File dir)
apps - la liste des applications a rechercherCopyright © 2013–2014 CodeLutin. All rights reserved.