public void sendPartialContent(GetableResource resource, Request request, Response response, List<Range> ranges, Map<String, String> params) throws NotAuthorizedException, BadRequestException, IOException {
log.trace("sendPartialContent");
if (ranges.size() == 1) {
log.trace("partial get, single range");
Range r = ranges.get(0);
responseHandler.respondPartialContent(resource, response, request, params, r);
} else {
log.trace("partial get, multiple ranges");
File temp = File.createTempFile("milton_partial_get", null);
FileOutputStream fout = null;