Package com.amazon.s3

Examples of com.amazon.s3.AWSAuthConnection


    private static ListEntry[] toListEntry(S3ListBucketObjectEntry[] engineEntries) {
        if (engineEntries != null) {
            ListEntry[] entries = new ListEntry[engineEntries.length];
            for (int i = 0; i < engineEntries.length; i++) {
                entries[i] = new ListEntry();
                entries[i].setETag(engineEntries[i].getETag());
                entries[i].setKey(engineEntries[i].getKey());
                entries[i].setLastModified(engineEntries[i].getLastModified());
                entries[i].setSize(engineEntries[i].getSize());
                entries[i].setStorageClass(StorageClass.STANDARD);
View Full Code Here


        request.setSourceBucketName(copyObject.getSourceBucket());
        request.setSourceKey(copyObject.getSourceKey());
        request.setDestinationBucketName(copyObject.getDestinationBucket());
        request.setDestinationKey(copyObject.getDestinationKey());
   
        MetadataDirective mdd = copyObject.getMetadataDirective();
        if (null != mdd) request.setDataDirective(mdd.getValue());

    request.setMetaEntries(toEngineMetaEntries(copyObject.getMetadata()));
    request.setAcl(toEngineAccessControlList(copyObject.getAccessControlList()));
   
    S3ConditionalHeaders conds = new S3ConditionalHeaders();
View Full Code Here

        request.setSourceBucketName(copyObject.getSourceBucket());
        request.setSourceKey(copyObject.getSourceKey());
        request.setDestinationBucketName(copyObject.getDestinationBucket());
        request.setDestinationKey(copyObject.getDestinationKey());

        MetadataDirective mdd = copyObject.getMetadataDirective();
        if (null != mdd)
            request.setDataDirective(mdd.getValue());

        request.setMetaEntries(toEngineMetaEntries(copyObject.getMetadata()));
        request.setAcl(toEngineAccessControlList(copyObject.getAccessControlList()));

        S3ConditionalHeaders conds = new S3ConditionalHeaders();
View Full Code Here

 
  private MetadataEntry[] toMetadataEntry(S3MetaDataEntry[] engineEntries) {
    if(engineEntries != null) {
      MetadataEntry[] entries = new MetadataEntry[engineEntries.length];
      for(int i = 0; i < engineEntries.length; i++) {
        entries[i] = new MetadataEntry();
        entries[i].setName(engineEntries[i].getName());
        entries[i].setValue(engineEntries[i].getValue());
      }
      return entries;
    }
View Full Code Here

    private MetadataEntry[] toMetadataEntry(S3MetaDataEntry[] engineEntries) {
        if (engineEntries != null) {
            MetadataEntry[] entries = new MetadataEntry[engineEntries.length];
            for (int i = 0; i < engineEntries.length; i++) {
                entries[i] = new MetadataEntry();
                entries[i].setName(engineEntries[i].getName());
                entries[i].setValue(engineEntries[i].getValue());
            }
            return entries;
        }
View Full Code Here

           else throw new UnsupportedOperationException("Unsupported grantee group URI: " + uri );

        }
        else throw new UnsupportedOperationException("Unsupported grantee type: " + grantee.getClass().getCanonicalName());
       
        Permission permission = grant.getPermission();
        String permissionValue = permission.getValue();
        if(permissionValue.equalsIgnoreCase("READ")) {
          engineGrant.setPermission(SAcl.PERMISSION_READ);
        } else if(permissionValue.equalsIgnoreCase("WRITE")) {
          engineGrant.setPermission(SAcl.PERMISSION_WRITE);
        } else if(permissionValue.equalsIgnoreCase("READ_ACP")) {
View Full Code Here

                        throw new UnsupportedOperationException("Unsupported grantee group URI: " + uri);

                } else
                    throw new UnsupportedOperationException("Unsupported grantee type: " + grantee.getClass().getCanonicalName());

                Permission permission = grant.getPermission();
                String permissionValue = permission.getValue();
                if (permissionValue.equalsIgnoreCase("READ")) {
                    engineGrant.setPermission(SAcl.PERMISSION_READ);
                } else if (permissionValue.equalsIgnoreCase("WRITE")) {
                    engineGrant.setPermission(SAcl.PERMISSION_WRITE);
                } else if (permissionValue.equalsIgnoreCase("READ_ACP")) {
View Full Code Here

 
  private static PrefixEntry[] toPrefixEntry(S3ListBucketPrefixEntry[] engineEntries) {
    if(engineEntries != null) {
      PrefixEntry[] entries = new PrefixEntry[engineEntries.length];
      for(int i = 0; i < engineEntries.length; i++) {
        entries[i] = new PrefixEntry();
        entries[i].setPrefix(engineEntries[i].getPrefix());
      }
     
      return entries;
    }
View Full Code Here

    }
     return null;
  }
 
  private PutObjectInlineResponse toPutObjectInlineResponse(S3PutObjectInlineResponse engineResponse) {
    PutObjectInlineResponse response = new PutObjectInlineResponse();
   
    PutObjectResult result = new PutObjectResult();
    result.setETag(engineResponse.getETag());
    result.setLastModified(engineResponse.getLastModified());   
    response.setPutObjectInlineResponse(result);
    return response;
  }
View Full Code Here

  }
 
  private PutObjectInlineResponse toPutObjectInlineResponse(S3PutObjectInlineResponse engineResponse) {
    PutObjectInlineResponse response = new PutObjectInlineResponse();
   
    PutObjectResult result = new PutObjectResult();
    result.setETag(engineResponse.getETag());
    result.setLastModified(engineResponse.getLastModified());   
    response.setPutObjectInlineResponse(result);
    return response;
  }
View Full Code Here

TOP

Related Classes of com.amazon.s3.AWSAuthConnection

Copyright © 2018 www.massapicom. 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.