response.setStatusCode(HttpStatus.SC_OK);
ResponseUtils.setEntity(response, getEntity(html));
} else {
///// 403 FORBIDDEN /////
LOG.trace("Cannot read file " + fs);
throw new ForbiddenException();
}
}
///// FOR FILE /////
else {
LOG.trace("File " + fs + " found");
response.setStatusCode(HttpStatus.SC_OK);
ResponseUtils.setEntity(response, getFileEntity(fs, p));
}
} catch (IOException e) {
throw new ForbiddenException(e);
}
}