Handler method called upon receipt of a QUIT command.
This method informs the client that the connection is
closing.
String responseString = "";
if ((argument == null) || (argument.length() == 0)) {
session.getResponseBuffer().append("221 "+DSNStatus.getStatus(DSNStatus.SUCCESS,DSNStatus.UNDEFINED_STATUS)+" ")
.append(session.getConfigurationData().getHelloName())
.append(" Service closing transmission channel");
responseString = session.clearResponseBuffer();
} else {
responseString = "500 "+DSNStatus.getStatus(DSNStatus.PERMANENT,DSNStatus.DELIVERY_INVALID_ARG)+" Unexpected argument provided with QUIT command";
}
session.writeResponse(responseString);
session.endSession();