Création règle de lecture HelloRule.java

This commit is contained in:
Benjamin Lejeune 2022-02-26 13:27:00 +01:00
parent ca961c04a7
commit c7af99a876

View File

@ -0,0 +1,18 @@
package lightcontainer.protocol.rules;
import lightcontainer.protocol.ProtocolReader;
public class HelloRule extends ProtocolReader {
private static final String PATTERN = "^HELLO ([A-Za-z0-9]{5,20}) ([0-9]{1,5})\r\n$";
public HelloRule() {
super(PATTERN);
}
@Override
protected void onExecuted(String[] data) {
}
}