if (Constants.CC_CMD_ENABLE.equalsIgnoreCase(callKey)) {
// enable services
boolean success = this.modifyStateOfServices(true, serviceName);
if (success == false) {
LOGGER.debug("service=" + serviceName + " not found");
scmpReply = new SCMPMessageFault(SCMPError.SERVICE_NOT_FOUND, serviceName);
}
response.setSCMP(scmpReply);
responderCallback.responseCallback(request, response);
return;
}
if (Constants.CC_CMD_DISABLE.equalsIgnoreCase(callKey)) {
// enable services
boolean success = this.modifyStateOfServices(false, serviceName);
if (success == false) {
LOGGER.debug("service=" + serviceName + " not found");
scmpReply = new SCMPMessageFault(SCMPError.SERVICE_NOT_FOUND, serviceName);
}
response.setSCMP(scmpReply);
responderCallback.responseCallback(request, response);
return;
}
LOGGER.error("wrong manage command body=" + bodyString); // body has bad syntax
scmpReply = new SCMPMessageFault(SCMPError.V_WRONG_MANAGE_COMMAND, bodyString);
response.setSCMP(scmpReply);
// initiate responder to send reply
responderCallback.responseCallback(request, response);
}