Java 类com.amazonaws.services.s3.S3ResponseMetadata 实例源码

项目:ibm-cos-sdk-java    文件:AbstractS3ResponseHandler.java   
/**
 * Parses the S3 response metadata (ex: AWS request ID) from the specified
 * response, and returns a AmazonWebServiceResponse<T> object ready for the
 * result to be plugged in.
 *
 * @param response
 *            The response containing the response metadata to pull out.
 *
 * @return A new, populated AmazonWebServiceResponse<T> object, ready for
 *         the result to be plugged in.
 */
protected AmazonWebServiceResponse<T> parseResponseMetadata(HttpResponse response) {
    AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>();
    String awsRequestId = response.getHeaders().get(Headers.REQUEST_ID);
    String hostId = response.getHeaders().get(Headers.EXTENDED_REQUEST_ID);
    String cloudFrontId = response.getHeaders().get(Headers.CLOUD_FRONT_ID);

    Map<String, String> metadataMap = new HashMap<String, String>();
    metadataMap.put(ResponseMetadata.AWS_REQUEST_ID, awsRequestId);
    metadataMap.put(S3ResponseMetadata.HOST_ID, hostId);
    metadataMap.put(S3ResponseMetadata.CLOUD_FRONT_ID, cloudFrontId);
    awsResponse.setResponseMetadata(new S3ResponseMetadata(metadataMap));

    return awsResponse;
}
项目:elasticsearch_my    文件:AmazonS3Wrapper.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    return delegate.getCachedResponseMetadata(request);
}
项目:syndesis    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:syndesis    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:syndesis    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:connectors    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:connectors    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:connectors    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:S3Decorators    文件:S3Decorator.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
  return getDelegate().getCachedResponseMetadata(request);
}
项目:Camel    文件:AmazonS3ClientMock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    throw new UnsupportedOperationException();
}
项目:presto    文件:MockAmazonS3.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
{
    return null;
}
项目:daikon    文件:AmazonS3TestWrapper.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
    return delegate.getCachedResponseMetadata(request);
}
项目:tajo    文件:MockAmazonS3.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
  throw new TajoInternalError(new UnsupportedException());
}
项目:aws-java-sdk-stubs    文件:AmazonS3Stub.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(final AmazonWebServiceRequest request) {
  throw new UnsupportedOperationException();
}
项目:Scribengin    文件:AmazonS3Mock.java   
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
  // TODO Auto-generated method stub
  return null;
}