return;
}
// check argument
arg = arg.toUpperCase();
ServerDataConnectionFactory dcon = session.getDataConnection();
if (arg.equals("C")) {
dcon.setSecure(false);
session.write(LocalizedFtpReply.translate(session, request, context,
FtpReply.REPLY_200_COMMAND_OKAY, "PROT", null));
} else if (arg.equals("P")) {
if (session.getListener().getDataConnectionConfiguration()
.getSslConfiguration() == null) {
session.write(LocalizedFtpReply.translate(session, request, context,
431, "PROT", null));
} else {
dcon.setSecure(true);
session.write(LocalizedFtpReply.translate(session, request, context,
FtpReply.REPLY_200_COMMAND_OKAY, "PROT", null));
}
} else {
session