Exemplo n.º 1
0
 @Override
 public void execute(ChannelHandlerContext ctx, FtpSessionHandler fs, String param) {
   Logger logger = fs.getLogger();
   String message = fs.getFtpMessage("214_Command_Recognized");
   message += "\r\n";
   try {
     message += Utility.getAllSupportingCommand();
     if (!message.endsWith("\r\n")) message += "\r\n";
     message += fs.getFtpMessage("214_Ok");
     Utility.sendMessageToClient(ctx.channel(), logger, fs.getClientIp(), message);
   } catch (ClassNotFoundException e) {
     Utility.sendMessageToClient(ctx.channel(), logger, fs.getClientIp(), e.getMessage());
   }
 }