break;
}
FileService fileService = this.validateFileService(message.getServiceName());
if (fileService.isEnabled() == false) {
SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_DISABLED, "service="
+ fileService.getName() + " is disabled");
scmpCommandException.setMessageType(getKey());
throw scmpCommandException;
}
SCMPMessage reply = null;
try {
FileServer fileServer = fileService.getServer();
reply = fileServer.serverGetFileList(fileService.getPath(), fileService.getGetFileListScriptName(),
message.getServiceName(), oti);
} catch (Exception e) {
SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.GET_FILE_LIST_FAILED,
"Error occured in get file list on SC.");
scmpCommandException.setMessageType(getKey());
throw scmpCommandException;
}
reply.setIsReply(true);
reply.setMessageType(getKey());
response.setSCMP(reply);