/** * Returns an object representing the details of an item in without the object's data, and * without applying any preconditions. * <p> * This method can be performed by anonymous services. Anonymous services * can get a publicly-readable object's details. * * @param bucketName * the name of the bucket containing the object. * @param objectKey * the key identifying the object. * @return * the object with the given key, including only general details and metadata * (not the data input stream) * @throws ServiceException */ public StorageObject getObjectDetails(String bucketName, String objectKey) throws ServiceException { return getObjectDetails(bucketName, objectKey, null, null, null, null); }
/** * Returns an object representing the details of an item in without the object's data, and * without applying any preconditions. * <p> * This method can be performed by anonymous services. Anonymous services * can get a publicly-readable object's details. * * @param bucketName * the name of the bucket containing the object. * @param objectKey * the key identifying the object. * @return * the object with the given key, including only general details and metadata * (not the data input stream) * @throws ServiceException */ public StorageObject getObjectDetails(String bucketName, String objectKey) throws ServiceException { return getObjectDetails(bucketName, objectKey, null, null, null, null); }
public void run() { try { if (headOnly) { result = storageService.getObjectDetails( bucketName, objectKey, null, null, null, null); } else { result = storageService.getObject( bucketName, objectKey); } } catch (ServiceException e) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) { result = new ThrowableBearingStorageObject(this.objectKey, e); } else { result = e; } } }
getObjectDetails(bucketName, objectKey); } catch (ServiceException e) { if (404 == e.getResponseCode()
getObjectDetails(bucketName, objectKey); } catch (ServiceException e) { if (404 == e.getResponseCode()
public void run() { try { if (headOnly) { result = storageService.getObjectDetails( bucketName, objectKey, null, null, null, null); } else { result = storageService.getObject( bucketName, objectKey); } } catch (ServiceException e) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) { result = new ThrowableBearingStorageObject(this.objectKey, e); } else { result = e; } } }
final StorageObject objectDetails = service.getObjectDetails(config.getS3Bucket(), taskKey, null, null, null, null);