Examples of DeleteObjectRequest


Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    ArgumentCaptor<DeleteObjectRequest> argument = ArgumentCaptor
        .forClass(DeleteObjectRequest.class);
    verify(s3Client).deleteObject(argument.capture());

    DeleteObjectRequest request = argument.getValue();
    assertThat(request.getBucketName(), is(S3_BUCKET_NAME));
    assertThat(request.getKey(), is(EXPECTED_DATA_STORE_REF));
  }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

  }

  @Override
  public void deleteProduct(Product product) throws DataTransferException, IOException {
    for (Reference ref : product.getProductReferences()) {
      DeleteObjectRequest request = new DeleteObjectRequest(bucketName, stripProtocol(
          ref.getDataStoreReference(), true));
      try {
        s3Client.deleteObject(request);
      } catch (AmazonClientException e) {
        throw new DataTransferException(String.format(
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    public void deleteObject(DeleteObjectRequest req) {
        req.getRequestClientOptions().appendUserAgent(USER_AGENT);
        // Delete the object
        super.deleteObject(req);
        // If it exists, delete the instruction file.
        DeleteObjectRequest instructionDeleteRequest = EncryptionUtils
                .createInstructionDeleteObjectRequest(req);
        super.deleteObject(instructionDeleteRequest);
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here

Examples of com.amazonaws.services.s3.model.DeleteObjectRequest

    /* (non-Javadoc)
     * @see com.amazonaws.services.s3.AmazonS3#deleteObject(java.lang.String, java.lang.String)
     */
    public void deleteObject(String bucketName, String key)
            throws AmazonClientException, AmazonServiceException {
        deleteObject(new DeleteObjectRequest(bucketName, key));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.