Nouvelles Regex : ERASE_RESULT_ERROR validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 12:42:41 +01:00
parent 83cf1c4c20
commit 4128efdefc
3 changed files with 17 additions and 4 deletions

View File

@ -3,11 +3,14 @@ package lightcontainer.protocol.rules.reader;
import lightcontainer.domains.client.Context;
import lightcontainer.interfaces.ProtocolRepository;
import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.StandardizedDefinitions;
import lightcontainer.protocol.rules.writer.RemoveFileErrorRule;
public class EraseErrorRule extends ProtocolReader {
import static lightcontainer.protocol.StandardizedDefinitions.SBE_ERASE_RESULT_ERROR;
private static final String PATTERN = "^ERASE_ERROR\r\n$";
public class EraseErrorRule extends ProtocolReader {
//"^ERASE_ERROR\r\n$"
private static final String PATTERN = SBE_ERASE_RESULT_ERROR;
private static final String NAME = "ERASE_ERROR";

View File

@ -19,7 +19,7 @@ import java.io.InputStream;
*/
public class SavefileRule extends ProtocolReader {
// Constants
private static final String PATTERN = "^SAVE_FILE ([^ !]{1,20}) ([0-9]{1,10})\r\n$";
private static final String PATTERN = "^SAVEFILE ([^ !]{1,20}) ([0-9]{1,10})\r\n$";
private static final String NAME = "SAVEFILE";

View File

@ -10,7 +10,17 @@
"name": "aaaaa",
"password": "$2a$10$Tuh5xmGEy0g26hQO1SHNY.TNy8rY9VCkpzRLP3rlpnVHtwYew4.km",
"aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=",
"files": []
"files": [
{
"name": "test.txt",
"fileNameSalt": "a+Nyu4hArJSdKdG6EvdxjQ==",
"size": 301,
"iv": "dzQdyPXANcb8sToyY84YzA==",
"storage": [
"lightcontainerSB01"
]
}
]
}
]
}