Nouvelles Regex : CLIENT_REMOVE_FILE validée
This commit is contained in:
parent
fdcccc1788
commit
4fac3a6d52
@ -3,15 +3,18 @@ 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.EraseFileRule;
|
||||
import lightcontainer.protocol.rules.writer.RemoveFileErrorRule;
|
||||
import lightcontainer.storage.ReadOnlyFile;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public class RemoveFileRule extends ProtocolReader {
|
||||
import static lightcontainer.protocol.StandardizedDefinitions.CLIENT_REMOVE_FILE;
|
||||
|
||||
private static final String PATTERN = "^REMOVEFILE ([^ !]{1,20})\r\n$";
|
||||
public class RemoveFileRule extends ProtocolReader {
|
||||
//"^REMOVEFILE ([^ !]{1,20})\r\n$"
|
||||
private static final String PATTERN = CLIENT_REMOVE_FILE;
|
||||
|
||||
private static final String NAME = "REMOVEFILE";
|
||||
|
||||
|
@ -10,17 +10,7 @@
|
||||
"name": "aaaaa",
|
||||
"password": "$2a$10$Tuh5xmGEy0g26hQO1SHNY.TNy8rY9VCkpzRLP3rlpnVHtwYew4.km",
|
||||
"aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=",
|
||||
"files": [
|
||||
{
|
||||
"name": "test.txt",
|
||||
"fileNameSalt": "3yLVBqM/zf8CcCFPqdh15Q==",
|
||||
"size": 301,
|
||||
"iv": "WfokhcAIefnnZnk3sYLjiA==",
|
||||
"storage": [
|
||||
"lightcontainerSB01"
|
||||
]
|
||||
}
|
||||
]
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user