Example #1
0
 /*
  * (non-Javadoc)
  *
  * @see org.mobicents.ss7.management.console.CommandHandler#isAvailable(org.mobicents
  * .ss7.management.console.CommandContext)
  */
 @Override
 public boolean isAvailable(CommandContext ctx) {
   if (!ctx.isControllerConnected()) {
     ctx.printLine("The command is not available in the current context. Please connnect first");
     return false;
   }
   return true;
 }
Example #2
0
 /*
  * (non-Javadoc)
  *
  * @see org.mobicents.ss7.management.console.CommandHandler#isValid(java.lang .String)
  */
 @Override
 public void handle(CommandContext ctx, String commandLine) {
   // TODO Validate command
   if (commandLine.contains("--help")) {
     this.printHelp(commandLine, ctx);
     return;
   }
   ctx.sendMessage(commandLine);
 }