}
}
protected void setBucketLoggingStatusImpl(String bucketName, S3BucketLoggingStatus status) throws S3ServiceException {
try {
AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
Constants.SOAP_SERVICE_NAME + "SetBucketLoggingStatus" + convertDateToString(timestamp));
LoggingSettings loggingSettings = null;
if (status.isLoggingEnabled()) {
loggingSettings = new LoggingSettings(status.getTargetBucketName(), status.getLogfilePrefix());
}
s3SoapBinding.setBucketLoggingStatus(
bucketName, getAWSAccessKey(), timestamp, signature, null,
new BucketLoggingStatus(loggingSettings));
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {