diff --git a/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileOkRule.java b/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileOkRule.java index 230cccd..04e5d50 100644 --- a/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileOkRule.java +++ b/app/src/main/java/lightcontainer/protocol/rules/writer/SaveFileOkRule.java @@ -2,17 +2,20 @@ package lightcontainer.protocol.rules.writer; import lightcontainer.domains.client.Context; import lightcontainer.protocol.ProtocolWriter; +import lightcontainer.protocol.StandardizedDefinitions; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; +import static lightcontainer.protocol.StandardizedDefinitions.FFE_SAVE_FILE_OK; + /** * Règle signifiant que la sauvegarde d'un fichier fût un succès */ public class SaveFileOkRule extends ProtocolWriter { - - private static final String PATTERN = "^SAVEFILE_OK\r\n$"; + //"^SAVEFILE_OK\r\n$" + private static final String PATTERN = FFE_SAVE_FILE_OK; public static final String NAME = "SAVEFILE_OK"; diff --git a/app/src/main/resources/appdata.json b/app/src/main/resources/appdata.json index 7d07491..267cc92 100644 --- a/app/src/main/resources/appdata.json +++ b/app/src/main/resources/appdata.json @@ -1 +1 @@ -{"unicast_port":8000,"multicast_ip":"224.66.66.1","multicast_port":15502,"network_interface":"lo","tls":true,"storagePath":"C:\\Users\\ledou\\Documents\\ffe","users":[{"name":"aaaaa","password":"$2a$10$Up/pME2iFKALVSu8/JDpG.8Vc2vidOm99SeVoayCB1th7KHMZ1gq2","aes_key":"4+D3geivckhduP14646nYBb91N71HJj+8uvHFb0su0o=","files":[{"name":"test.txt","fileNameSalt":"QTWuH0rNYf0+8ondzDlFeA==","size":301,"iv":"r+Lw9Qpo5Ca7cO45MytKwA==","storage":["lightcontainerSB01"]}]}]} \ No newline at end of file +{"unicast_port":8000,"multicast_ip":"224.66.66.1","multicast_port":15502,"network_interface":"lo","tls":true,"storagePath":"C:\\Users\\ledou\\Documents\\ffe","users":[{"name":"aaaaa","password":"$2a$10$Up/pME2iFKALVSu8/JDpG.8Vc2vidOm99SeVoayCB1th7KHMZ1gq2","aes_key":"4+D3geivckhduP14646nYBb91N71HJj+8uvHFb0su0o=","files":[{"name":"test.txt","fileNameSalt":"QTWuH0rNYf0+8ondzDlFeA==","size":301,"iv":"r+Lw9Qpo5Ca7cO45MytKwA==","storage":["lightcontainerSB01"]},{"name":"regex.txt","fileNameSalt":"hPTgHiTySuUiJE0I4QD1Gw==","size":1320,"iv":"Uw7pAMKAEJRL/vn2NJ//wA==","storage":["lightcontainerSB01"]}]}]} \ No newline at end of file