Nouvelles Regex : FFE_GET_FILE_RESULT_ERROR validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 13:31:23 +01:00
parent e43d0595d4
commit 0f84ed8355
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
package lightcontainer.protocol.rules.writer; package lightcontainer.protocol.rules.writer;
import lightcontainer.protocol.ProtocolWriter; import lightcontainer.protocol.ProtocolWriter;
import lightcontainer.protocol.StandardizedDefinitions;
import static lightcontainer.protocol.StandardizedDefinitions.FFE_GET_FILE_RESULT_ERROR;
/** /**
* Règle utilisé dans le cas ou une erreur survient lors * Règle utilisé dans le cas ou une erreur survient lors
@ -9,7 +12,7 @@ import lightcontainer.protocol.ProtocolWriter;
public class GetFileErrorRule extends ProtocolWriter { public class GetFileErrorRule extends ProtocolWriter {
// Constants // Constants
//"^GETFILE_ERROR\r\n$" //"^GETFILE_ERROR\r\n$"
private static final String PATTERN = "^GETFILE_ERROR\r\n$"; private static final String PATTERN = FFE_GET_FILE_RESULT_ERROR;
public static final String NAME = "GETFILE_ERROR"; public static final String NAME = "GETFILE_ERROR";
// Constructors // Constructors

View File

@ -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":[]}]} {"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":"FIjFt/hfscPkTLksP0IT4A==","size":301,"iv":"ATf85tYHY7WoGmyy3XRqyA==","storage":["lightcontainerSB01"]}]}]}