Package org.jets3t.service

Examples of org.jets3t.service.S3ServiceException


            s3SoapBinding.setBucketAccessControlPolicy(bucketName, grants,
                getAWSAccessKey(), timestamp, signature, null);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Put Bucket ACL", e);  
        }       
    }
View Full Code Here


                timestamp, signature, null);
            return convertAccessControlTypes(result);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Get ACL", e);  
        }
    }
View Full Code Here

                getAWSAccessKey(), timestamp, signature, null);
            return convertAccessControlTypes(result);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Get ACL", e);  
        }
    }
View Full Code Here

                return new S3BucketLoggingStatus();
            }
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Get Bucket logging status for " + bucketName, e);  
        }       
    }
View Full Code Here

                bucketName, getAWSAccessKey(), timestamp, signature, null,
                new BucketLoggingStatus(loggingSettings));
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new S3ServiceException("Unable to Set Bucket logging status for " + bucketName
                + ": " + status, e);  
        }       
    }
View Full Code Here

                + ": " + status, e);  
        }       
    }

    protected boolean isRequesterPaysBucketImpl(String bucketName) throws S3ServiceException {
        throw new S3ServiceException("The SOAP API interface for S3 does not allow " +
            "you to retrieve request payment configuration settings for a bucket, " +
            "please use the REST API client class RestS3Service instead");   
    }
View Full Code Here

            "you to retrieve request payment configuration settings for a bucket, " +
            "please use the REST API client class RestS3Service instead");   
    }

    protected void setRequesterPaysBucketImpl(String bucketName, boolean requesterPays) throws S3ServiceException {
        throw new S3ServiceException("The SOAP API interface for S3 does not allow " +
            "you to set a bucket's request payment configuration settings, " +
            "please use the REST API client class RestS3Service instead");       
    }
View Full Code Here

                // For signed URL downloads, we create a surrogate S3Object purely for monitoring purposes.
                try {
                    URL url = new URL(downloadPackages[i].getSignedUrl());           
                    objects[i] = ServiceUtils.buildObjectFromUrl(url.getHost(), url.getPath());
                } catch (Exception e) {
                    throw new S3ServiceException("Unable to determine S3 Object key name from signed URL: " +
                        downloadPackages[i].getSignedUrl());
                }
            } else {
                objects[i] = downloadPackages[i].getObject();               
            }
View Full Code Here

        throws S3ServiceException
    {
        // Sanity check to ensure all packages are based on signed URLs
        for (int i = 0; i < downloadPackages.length; i++) {
            if (!downloadPackages[i].isSignedDownload()) {
                throw new S3ServiceException(
                    "The downloadObjects(DownloadPackage[]) method may only be used with " +
                    "download packages based on signed URLs. Download package " + (i + 1) +
                    " of " + downloadPackages.length + " is not based on a signed URL");               
            }
        }
View Full Code Here

        BufferedInputStream fileIS = null;
        try {
            fileIS = new BufferedInputStream(new FileInputStream(file));
            return load(password, fileIS);
        } catch (Throwable t) {
            throw new S3ServiceException("Failed to load AWS credentials", t);
        } finally {
            if (fileIS != null) {
                try {
                    fileIS.close();
                } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.jets3t.service.S3ServiceException

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.