public abstract class AbstractApplicationUpdaterAction extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION_KEY |
protected ApplicationConfig |
config |
protected File |
currentDir |
static String |
HTTP_PROXY |
static String |
URL_KEY |
static String |
VERSION_KEY |
protected String |
vfsPropertiesUrl |
| Constructor and Description |
|---|
AbstractApplicationUpdaterAction(ApplicationConfig config,
String vfsPropertiesUrl,
File currentDir) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getApplicationName(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 ApplicationConfig |
getUpdaterConfig(org.apache.commons.vfs2.FileSystemOptions vfsConfig,
String vfsPropertiesUrl)
Return config prepared for os and arch
|
protected Map<String,ApplicationInfo> |
getVersions(ApplicationConfig releaseConfig,
boolean allVersion,
File destDir) |
protected org.apache.commons.vfs2.FileSystemOptions |
getVFSConfig(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 ApplicationConfig config
protected String vfsPropertiesUrl
protected File currentDir
public AbstractApplicationUpdaterAction(ApplicationConfig config, String vfsPropertiesUrl, File currentDir)
protected Map<String,ApplicationInfo> getVersions(ApplicationConfig releaseConfig, boolean allVersion, File destDir)
protected String toVfsURL(String path)
path - protected ApplicationConfig getUpdaterConfig(org.apache.commons.vfs2.FileSystemOptions vfsConfig, String vfsPropertiesUrl) throws Exception
Exceptionprotected org.apache.commons.vfs2.FileSystemOptions getVFSConfig(ApplicationConfig config)
config - protected Map<String,String> getCurrentVersion(List<String> apps, File dir)
apps - la liste des applications a rechercherprotected List<String> getApplicationName(ApplicationConfig config)
config - Copyright © 2013 CodeLutin. All Rights Reserved.