Nouvelles Regex : SBE_SEND_RESULT_ERROR validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 13:06:48 +01:00
parent 5a909b65aa
commit 1a124f609f
2 changed files with 9 additions and 5 deletions

View File

@ -3,14 +3,18 @@ package lightcontainer.protocol.rules.reader;
import lightcontainer.domains.client.Context; import lightcontainer.domains.client.Context;
import lightcontainer.interfaces.ProtocolRepository; import lightcontainer.interfaces.ProtocolRepository;
import lightcontainer.protocol.ProtocolReader; import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.StandardizedDefinitions;
import lightcontainer.protocol.rules.writer.SaveFileErrorRule; import lightcontainer.protocol.rules.writer.SaveFileErrorRule;
import static lightcontainer.protocol.StandardizedDefinitions.SBE_SEND_RESULT_ERROR;
/** /**
* Règle permettant de de confirmer la sauvegrade d'un fichier. * Règle permettant de de confirmer la sauvegrade d'un fichier.
*/ */
public class SendErrorRule extends ProtocolReader { public class SendErrorRule extends ProtocolReader {
// Constants // Constants
private static final String PATTERN = "^SEND_ERROR\r\n$"; //"^SEND_ERROR\r\n$"
private static final String PATTERN = SBE_SEND_RESULT_ERROR;
private static final String NAME = "SEND_ERROR"; private static final String NAME = "SEND_ERROR";

View File

@ -12,10 +12,10 @@
"aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=", "aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=",
"files": [ "files": [
{ {
"name": "test.txt", "name": "tes",
"fileNameSalt": "4DMHDs7+7lS8iw/SZYsdbA==", "fileNameSalt": "DlxEqOb4l9rbbRi8E8k+EA==",
"size": 301, "size": 0,
"iv": "Yuq6QN1WYFm7DZzO+svKGw==", "iv": "HpJr8VZOFEIRuxj9z1Uzig==",
"storage": [ "storage": [
"lightcontainerSB01" "lightcontainerSB01"
] ]