Package org.jets3t.service.utils.gatekeeper

Examples of org.jets3t.service.utils.gatekeeper.SignatureRequest


            priorFailureException = null;
        }

        // Add all S3 objects as candiates for PUT signing.
        for (int i = 0; i < objects.length; i++) {
            SignatureRequest signatureRequest = new SignatureRequest(
                    operationType, objects[i].getKey());
            signatureRequest.setObjectMetadata(objects[i].getMetadataMap());
            signatureRequest.setBucketName(bucketName);

            gatekeeperMessage.addSignatureRequest(signatureRequest);
        }

        /*
 
View Full Code Here


        S3Object[] objects = service.listObjects(s3BucketName, prefix, null, 1000);

        // Package object information in SignatureRequest objects. This data will be
        // automatically encoded and sent across the wire back to the client.
        for (int i = 0; i < objects.length; i++) {
            SignatureRequest sr = new SignatureRequest();
            sr.setObjectMetadata(objects[i].getMetadataMap());
            sr.addObjectMetadata(S3Object.METADATA_HEADER_LAST_MODIFIED_DATE,
                ServiceUtils.formatIso8601Date(objects[i].getLastModifiedDate()));
            sr.setObjectKey(objects[i].getKey());
            gatekeeperMessage.addSignatureRequest(sr);
        }

        gatekeeperMessage.addApplicationProperty("AccountDescription",
            "<html>Bucket: <b>" + s3BucketName + "</b></html>");
View Full Code Here

TOP

Related Classes of org.jets3t.service.utils.gatekeeper.SignatureRequest

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.