Nouvelles Regex : ERASE_RESULT_ERROR validée
This commit is contained in:
parent
83cf1c4c20
commit
4128efdefc
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user