package de.predic8;

import de.predic8.util.PropertyFile;

public interface Endpoints {

    /**
     * Smtp endpoint
     */
    String smtp = String.format("smtp://%s?password=%s&username=%s&to=%s&from=%s"
            , PropertyFile.getInstance("email_smtp")
            , PropertyFile.getInstance("email_password")
            , PropertyFile.getInstance("email_username")
            , PropertyFile.getInstance("email_recipient")
            , PropertyFile.getInstance("email_username"));

    /**
     * Files and Folder enpoints
     */
    String archiveFolder = "file:document-archive/archive?fileName=${property.fileName}";
    String logFile = "file:document-archive/logs?fileExist=Append&fileName=log.txt";
    String notifyFile = "file:document-archive/notify?fileExist=Append&fileName=new_files.txt";

    /**
     * Freemarker endpoints
     */
    String dailyMailFM = "freemarker:/email-templates/daily_report.ftl";
    String fileNotFoundFM = "freemarker:/email-templates/file_not_found.ftl";
    String verifyFailedFM = "freemarker:/email-templates/verify_fail.ftl";
    String verifyOkFM = "freemarker:/email-templates/verify_ok.ftl";
}

@@ -18,46 +18,8 @@
 8;%0A%0A
-import de.predic8.util.PropertyFile;%0A%0A
 publ
@@ -103,337 +103,117 @@
 p = 
-String.format(%22smtp://%25s?password=%25s&username=%25s&to=%25s&from=%25s%22%0A            , PropertyFile.getInstance(%22email_smtp%22)%0A            , PropertyFile.getInstance(%22email_password%22)%0A            , PropertyFile.getInstance(%22email_username%22)%0A            , PropertyFile.getInstance(%22email_recipient%22)%0A            , PropertyFile.getInstance(%22
+%22smtp://%7B%7Bemail_smtp%7D%7D?password=%7B%7Bemail_password%7D%7D&username=%7B%7Bemail_username%7D%7D&to=%7B%7Bemail_recipient%7D%7D&from=%7B%7B
 emai
@@ -226,11 +226,11 @@
 name
-%22))
+%7D%7D%22
 ;%0A%0A 

use property placeholder