/** * Retrieves details of multiple objects (details only, no data) * * @param bucketName * name of the bucket containing the objects. * @param objectKeys * the key names of the objects to retrieve. * @return * objects populated with the details retrieved. * @throws ServiceException */ public StorageObject[] getObjectsHeads(String bucketName, final String[] objectKeys) throws ServiceException { return getObjectsHeads(bucketName, objectKeys, null); }
/** * Retrieves details of multiple objects (details only, no data) * * @param bucketName * name of the bucket containing the objects. * @param objectKeys * the key names of the objects to retrieve. * @return * objects populated with the details retrieved. * @throws ServiceException */ public StorageObject[] getObjectsHeads(String bucketName, final String[] objectKeys) throws ServiceException { return getObjectsHeads(bucketName, objectKeys, null); }
/** * Retrieves details of multiple objects (details only, no data) * * @param bucketName * name of the bucket containing the objects. * @param objects * the objects to retrieve. * @return * objects populated with the details retrieved. * @throws ServiceException */ public StorageObject[] getObjectsHeads(String bucketName, StorageObject[] objects) throws ServiceException { String[] objectKeys = new String[objects.length]; for (int i = 0; i < objects.length; i++) { objectKeys[i] = objects[i].getKey(); } return getObjectsHeads(bucketName, objectKeys); }
/** * Retrieves details of multiple objects (details only, no data) * * @param bucketName * name of the bucket containing the objects. * @param objects * the objects to retrieve. * @return * objects populated with the details retrieved. * @throws ServiceException */ public StorageObject[] getObjectsHeads(String bucketName, StorageObject[] objects) throws ServiceException { String[] objectKeys = new String[objects.length]; for (int i = 0; i < objects.length; i++) { objectKeys[i] = objects[i].getKey(); } return getObjectsHeads(bucketName, objectKeys); }