While implementing a site command, for example extending "site help", the
return StringBuffer.toString() IE:

        session.write(new DefaultFtpReply(FtpReply.REPLY_200_COMMAND_OKAY,
sb.toString()));

does not reply a:

200- Line1
200- Line2
200- Line3
ftp>

Instead the response is as:

200-
Line1
Line2
200- Line3
ftp>

Class FtpIoSession handles this return message in method:

   public WriteFuture write(Object message) {
        WriteFuture future = wrappedSession.write(message);
        this.lastReply = (FtpReply) message;
        return future;
    }

However WriteFuture is a class from mina.

Any way to return a "200- " per line?

        session.write(new DefaultFtpReply(FtpReply.REPLY_200_COMMAND_OKAY,
String[])); has same issue.

Thanks!

Reply via email to