Examples of copyObject()


Examples of org.jets3t.service.S3Service.copyObject()

        // copy-in-place  (with the same bucket and object names for source and destination)
        // to update an object's metadata while leaving the object's data unchanged.
        targetObject = new S3Object("HelloWorld.txt");
        targetObject.addMetadata(S3Object.METADATA_HEADER_CONTENT_TYPE, "text/html");       
        replaceMetadata = true;
        s3Service.copyObject("test-bucket", "HelloWorld.txt", "test-bucket", targetObject, replaceMetadata);

        /*
         * Moving and Renaming objects
         */
       
View Full Code Here

Examples of org.jets3t.service.impl.rest.httpclient.GoogleStorageService.copyObject()

        GSObject targetObject = new GSObject("target-object-with-sources-metadata");

        // Copy an existing source object to the target GSObject
        // This will copy the source's object data and metadata to the target object.
        boolean replaceMetadata = false;
        gsService.copyObject(BUCKET_NAME, TEST_OBJECT_NAME, "target-bucket", targetObject, replaceMetadata);

        // You can also copy an object and update its metadata at the same time. Perform a
        // copy-in-place  (with the same bucket and object names for source and destination)
        // to update an object's metadata while leaving the object's data unchanged.
        targetObject = new GSObject(TEST_OBJECT_NAME);
View Full Code Here

Examples of org.jets3t.service.impl.rest.httpclient.RestS3Service.copyObject()

        S3Object targetObject = new S3Object("targetObjectWithSourcesMetadata");
       
        // Copy an existing source object to the target S3Object
        // This will copy the source's object data and metadata to the target object.
        boolean replaceMetadata = false;
        s3Service.copyObject("test-bucket", "HelloWorld.txt", "destination-bucket", targetObject, replaceMetadata);

        // You can also copy an object and update its metadata at the same time. Perform a
        // copy-in-place  (with the same bucket and object names for source and destination)
        // to update an object's metadata while leaving the object's data unchanged.
        targetObject = new S3Object("HelloWorld.txt");
View Full Code Here

Examples of org.jets3t.service.impl.rest.httpclient.RestStorageService.copyObject()

            // Copy objects within bucket, retaining metadata
            String targetPath = "copies/";
            for (String objectName: objectNames) {
                StorageObject targetObject = new StorageObject(
                    targetPath + objectName);
                service.copyObject(sourceBucketName, objectName,
                    sourceBucketName, targetObject,
                    false // replaceMetadata
                    );
            }
            // Ensure objects are in target location and have the same metadata
View Full Code Here

Examples of org.jets3t.service.impl.soap.axis._2006_03_01.AmazonS3SoapBindingStub.copyObject()

            Grant[] grants = null;
            if (acl != null) {
                grants = convertACLtoGrants(acl);
            }
           
            CopyObjectResult result = s3SoapBinding.copyObject(
                sourceBucketName, sourceObjectKey, destinationBucketName,
                destinationObjectKey, metadataDirective, metadata, grants,
                ifModifiedSince, ifUnmodifiedSince, ifMatchTags, ifNoneMatchTags,
                null, getAWSAccessKey(), timestamp, signature, null);
           
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.