From 780c56df11a38953152b894572b123c3b46d57ef Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sat, 26 Feb 2022 14:00:40 +0100 Subject: [PATCH] =?UTF-8?q?-=20Suppression=20de=20l'ancienne=20r=C3=A8gle?= =?UTF-8?q?=20HelloRule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lightcontainer/protocol/HelloRule.java | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 app/src/main/java/lightcontainer/protocol/HelloRule.java diff --git a/app/src/main/java/lightcontainer/protocol/HelloRule.java b/app/src/main/java/lightcontainer/protocol/HelloRule.java deleted file mode 100644 index c9c2b94..0000000 --- a/app/src/main/java/lightcontainer/protocol/HelloRule.java +++ /dev/null @@ -1,31 +0,0 @@ -package lightcontainer.protocol; - -public class HelloRule extends Protocol { - // Variables - - // Constructor - protected HelloRule() { - super("HELLO", "HELLO "); // TODO : add the regex here (sbe_hello = "HELLO bl domain bl port line") - } - - /** - * Execute the rule on a command. - * - * This function allows you to check a command and process those groups (parameters) - * use the utility functions of {@link Protocol} to facilitate processing, see @see. - * - * @param cmd Command on which to execute the rule. - * @see Protocol#execute(String) - * @see #matcherCheck(String) - * @see #matcherGetGroups() - * @since 1.0 - */ - @Override - public void execute(String cmd) { - if (matcherCheck(cmd)) { - System.out.println("Good rule ;-) !"); - } else { - System.out.println("OUPPS unknown rule !"); - } - } -}