* @author Nicolas LE GRAND
* @author Stephane Vast
*/
-public class ConfigLoader {
+class ConfigLoader {
- Properties cf;
private static String endPoint, user, pass, trustStorePass, trustStorePath,keyStorePath, keyStorePass; //,
// typeTechnique, sousType, emailEmetteur, visibilite, datelimite, outputPath;
// private static String dossierID;
*
* @param path chemin d'acces au fichier de configuration (conf.cf)
*/
- public ConfigLoader(String path) {
+ ConfigLoader(String path) {
// Chargement de l'ensemble de la config
// TO DO .. Tester la bonne config & remonter erreur
// Ouverture du fichier de configuration
- cf = new Properties();
+ Properties cf = new Properties();
FileInputStream in;
try {
in = new FileInputStream(path);
}
}
- public boolean isFileExists(String filePath) {
+ private boolean isFileExists(String filePath) {
File f;
f = new File(filePath);
if (!f.exists()) {
return true;
}
- public String getEndPoint() {
+ String getEndPoint() {
return endPoint;
}
- public String getUser() {
+ String getUser() {
return user;
}
- public String getPass() {
+ String getPass() {
return pass;
}
- public String getTrustStorePass() {
+ String getTrustStorePass() {
return trustStorePass;
}
- public String getTrustStorePath() {
+ String getTrustStorePath() {
return trustStorePath;
}
- public String getKeyStorePath() {
+ String getKeyStorePath() {
return keyStorePath;
}
- public String getKeyStorePass() {
+ String getKeyStorePass() {
return keyStorePass;
}
/*