Nouvelles Regex : CLIENT_SIGN_IN validée
This commit is contained in:
parent
b65310399f
commit
83cf1c4c20
@ -3,15 +3,19 @@ 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.SignErrorRule;
|
import lightcontainer.protocol.rules.writer.SignErrorRule;
|
||||||
import lightcontainer.protocol.rules.writer.SignOkRule;
|
import lightcontainer.protocol.rules.writer.SignOkRule;
|
||||||
|
|
||||||
|
import static lightcontainer.protocol.StandardizedDefinitions.CLIENT_SIGN_IN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Règle permettant de gérer la connection d'un utilisateur
|
* Règle permettant de gérer la connection d'un utilisateur
|
||||||
*/
|
*/
|
||||||
public class SigninRule extends ProtocolReader {
|
public class SigninRule extends ProtocolReader {
|
||||||
// Constants
|
// Constants
|
||||||
private static final String PATTERN = "^SIGNIN ([A-Za-z0-9]{5,20}) ([^ !]{5,50})\r\n$";
|
//"^SIGNIN ([A-Za-z0-9]{5,20}) ([^ !]{5,50})\r\n$"
|
||||||
|
private static final String PATTERN = CLIENT_SIGN_IN;
|
||||||
|
|
||||||
private static final String NAME = "SIGNIN";
|
private static final String NAME = "SIGNIN";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user