- Suppression de l'ancienne règle HelloRule
This commit is contained in:
parent
baa13b8aa2
commit
780c56df11
@ -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 !");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user