Request<Void> request = createRequest(bucketName, null, null);
request.addParameter("policy", null);
signRequest(request, HttpMethodName.GET, bucketName, null);
HttpRequest httpRequest = convertToHttpRequest(request, HttpMethodName.GET);
BucketPolicy result = new BucketPolicy();
try {
String policyText = client.execute(httpRequest, new S3StringResponseHandler(), errorResponseHandler);
result.setPolicyText(policyText);
return result;
} catch (AmazonServiceException ase) {
/*
* If we receive an error response telling us that no policy has
* been set for this bucket, then instead of forcing the user to