private RequestPaymentConfiguration getBucketRequestPayment(
            GetRequestPaymentConfigurationRequest getRequestPaymentConfigurationRequest) {

        String bucketName = getRequestPaymentConfigurationRequest
                .getBucketName();

        rejectNull(
                bucketName,
                "The bucket name parameter must be specified while getting the Request Payment Configuration.");

        Request<GetRequestPaymentConfigurationRequest> request = createRequest(
                bucketName, null, getRequestPaymentConfigurationRequest,
                HttpMethodName.GET);
        request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetBucketRequestPayment");
        request.addParameter("requestPayment", null);
        request.addHeader("Content-Type", "application/xml");

        return invoke(request,
                new Unmarshallers.RequestPaymentConfigurationUnmarshaller(),
                bucketName, null);
    }
private RequestPaymentConfiguration getBucketRequestPayment ( GetRequestPaymentConfigurationRequest getRequestPaymentConfigurationRequest ) { String bucketName = getRequestPaymentConfigurationRequest . getBucketName ( ) ; rejectNull ( bucketName , "The bucket name parameter must be specified while getting the Request Payment Configuration." ) ; Request < GetRequestPaymentConfigurationRequest > request = createRequest ( bucketName , null , getRequestPaymentConfigurationRequest , HttpMethodName . GET ) ; request . addHandlerContext ( HandlerContextKey . OPERATION_NAME , "GetBucketRequestPayment" ) ; request . addParameter ( "requestPayment" , null ) ; request . addHeader ( "Content-Type" , "application/xml" ) ; return invoke ( request , new Unmarshallers . RequestPaymentConfigurationUnmarshaller ( ) , bucketName , null ) ; }
Retrieves the request payment configuration for a given Amazon S3 bucket.
<p>
When the request payment configuration for a Amazon S3 bucket is
<code>Requester</code>, the requester instead of the bucket owner pays
the cost of the request and the data download from the bucket. The bucket
owner always pays the cost of storing data.