Création règle de lecture HelloRule.java
This commit is contained in:
parent
ca961c04a7
commit
c7af99a876
@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user