Package org.jets3t.service.utils.signedurl

Examples of org.jets3t.service.utils.signedurl.SignedUrlHandler


                    } else {
                        s3Service.putObjectAcl(bucket, s3Object);
                    }
                    result = s3Object;
                } else {
                    SignedUrlHandler handler = s3Service;
                    handler.putObjectAclWithSignedUrl(signedUrl, signedUrlAcl);
                    URL url = new URL(signedUrl);
                    S3Object object = ServiceUtils.buildObjectFromUrl(
                        url.getHost(), url.getPath(), s3Service.getEndpoint());
                    object.setAcl(signedUrlAcl);
                    result = object;
View Full Code Here


                if (signedAclUrl == null) {
                    AccessControlList acl = s3Service.getObjectAcl(bucket, object.getKey());
                    object.setAcl(acl);
                    result = object;
                } else {
                    SignedUrlHandler handler = s3Service;
                    AccessControlList acl = handler.getObjectAclWithSignedUrl(signedAclUrl);
                    URL url = new URL(signedAclUrl);
                    object = ServiceUtils.buildObjectFromUrl(
                        url.getHost(), url.getPath(), s3Service.getEndpoint());
                    object.setAcl(acl);
                    result = object;
View Full Code Here

            try {
                if (signedDeleteUrl == null) {
                    s3Service.deleteObject(bucket, object.getKey());
                    result = object;
                } else {
                    SignedUrlHandler handler = s3Service;
                    handler.deleteObjectWithSignedUrl(signedDeleteUrl);
                    URL url = new URL(signedDeleteUrl);
                    result = ServiceUtils.buildObjectFromUrl(
                        url.getHost(), url.getPath(), s3Service.getEndpoint());
                }
            } catch (RuntimeException e) {
View Full Code Here

            try {
                if (headOnly) {
                    if (signedGetOrHeadUrl == null) {
                        result = s3Service.getObjectDetails(bucket, objectKey);
                    } else {
                        SignedUrlHandler handler = s3Service;
                        result = handler.getObjectDetailsWithSignedUrl(signedGetOrHeadUrl);
                    }
                } else {
                    if (signedGetOrHeadUrl == null) {
                        result = s3Service.getObject(bucket, objectKey);
                    } else {
                        SignedUrlHandler handler = s3Service;
                        result = handler.getObjectWithSignedUrl(signedGetOrHeadUrl);
                    }
                }
            } catch (ServiceException se) {
                result = new S3ServiceException(se);
            }
View Full Code Here

            try {
                if (!downloadPackage.isSignedDownload()) {
                    object = s3Service.getObject(bucket, objectKey);
                } else {
                    SignedUrlHandler handler = s3Service;
                    object = handler.getObjectWithSignedUrl(downloadPackage.getSignedUrl());
                }

                // Replace the S3 object in the download package with the downloaded version to make metadata available.
                downloadPackage.setObject(object);
View Full Code Here

                        signedUrlAndObject.getObject().getDataInputStream());
                    ProgressMonitoredInputStream pmInputStream = new ProgressMonitoredInputStream(
                        interruptableInputStream, progressMonitor);
                    signedUrlAndObject.getObject().setDataInputStream(pmInputStream);
                }
                SignedUrlHandler signedPutUploader = s3Service;
                result = signedPutUploader.putObjectWithSignedUrl(
                    signedUrlAndObject.getSignedUrl(), signedUrlAndObject.getObject());

                if (underlyingFile instanceof TempFile) {
                    underlyingFile.delete();
                }
View Full Code Here

TOP

Related Classes of org.jets3t.service.utils.signedurl.SignedUrlHandler

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.