if (!"".equals(command))
{
String logStr = "";
String[] comms = command.split(" ");
FtpCommand curCommand = clientSession.getFtpServer().getCommand(comms[0].toUpperCase());
logStr = comms[0].toUpperCase();
if (curCommand != null)
{
if (comms.length > 1)
{
for (int i = 2; i < comms.length; i++)
{
if ("".equals(comms[i]))
{
comms[1] += " ";
}
else
{
comms[1] += " " + comms[i];
}
}
logStr += " " + comms[1];
}
FtpContext ftpContext = new FtpContext(clientSession, comms);
curCommand.execute(ftpContext);
}
else
{
clientSession.reply(String.format(FtpConst.Replyes.REPLY_500, comms[0].toUpperCase()));
clientSession.setPrevCommand(null);