containerSegments.add(object);
}
}
else {
method.abort();
throw new GenericException(response);
}
}
}
else {
/*
* Not a large object, so return null
*/
return null;
}
}
catch(NotFoundException e) {
/*
* Just means no object exists with the specified region, container and name
*/
return null;
}
catch(JsonParseException e) {
throw new GenericException("JSON parsing failed reading static large object manifest", e);
}
catch(URISyntaxException e) {
throw new GenericException("URI Building failed reading static large object manifest", e);
}
return existingSegments;
}