Nouvelles Regex : FFE_SAVE_FILE_OK validée
This commit is contained in:
parent
d7779fc95a
commit
99c682015a
@ -2,17 +2,20 @@ package lightcontainer.protocol.rules.writer;
|
||||
|
||||
import lightcontainer.domains.client.Context;
|
||||
import lightcontainer.protocol.ProtocolWriter;
|
||||
import lightcontainer.protocol.StandardizedDefinitions;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import static lightcontainer.protocol.StandardizedDefinitions.FFE_SAVE_FILE_OK;
|
||||
|
||||
/**
|
||||
* Règle signifiant que la sauvegarde d'un fichier fût un succès
|
||||
*/
|
||||
public class SaveFileOkRule extends ProtocolWriter {
|
||||
|
||||
private static final String PATTERN = "^SAVEFILE_OK\r\n$";
|
||||
//"^SAVEFILE_OK\r\n$"
|
||||
private static final String PATTERN = FFE_SAVE_FILE_OK;
|
||||
|
||||
public static final String NAME = "SAVEFILE_OK";
|
||||
|
||||
|
@ -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":[{"name":"test.txt","fileNameSalt":"QTWuH0rNYf0+8ondzDlFeA==","size":301,"iv":"r+Lw9Qpo5Ca7cO45MytKwA==","storage":["lightcontainerSB01"]}]}]}
|
||||
{"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":"QTWuH0rNYf0+8ondzDlFeA==","size":301,"iv":"r+Lw9Qpo5Ca7cO45MytKwA==","storage":["lightcontainerSB01"]},{"name":"regex.txt","fileNameSalt":"hPTgHiTySuUiJE0I4QD1Gw==","size":1320,"iv":"Uw7pAMKAEJRL/vn2NJ//wA==","storage":["lightcontainerSB01"]}]}]}
|
Loading…
Reference in New Issue
Block a user