本文整理汇总了Java中com.amazonaws.services.s3.S3ResponseMetadata类的典型用法代码示例。如果您正苦于以下问题:Java S3ResponseMetadata类的具体用法?Java S3ResponseMetadata怎么用?Java S3ResponseMetadata使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
S3ResponseMetadata类属于com.amazonaws.services.s3包,在下文中一共展示了S3ResponseMetadata类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: parseResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
/**
* 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;
}
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:26,代码来源:AbstractS3ResponseHandler.java
示例2: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return delegate.getCachedResponseMetadata(request);
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:AmazonS3Wrapper.java
示例3: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
throw new UnsupportedOperationException();
}
开发者ID:syndesisio,项目名称:syndesis,代码行数:5,代码来源:AmazonS3ClientMock.java
示例4: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return getDelegate().getCachedResponseMetadata(request);
}
开发者ID:HubSpot,项目名称:S3Decorators,代码行数:5,代码来源:S3Decorator.java
示例5: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
{
return null;
}
开发者ID:y-lan,项目名称:presto,代码行数:6,代码来源:MockAmazonS3.java
示例6: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
throw new TajoInternalError(new UnsupportedException());
}
开发者ID:apache,项目名称:tajo,代码行数:5,代码来源:MockAmazonS3.java
示例7: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(final AmazonWebServiceRequest request) {
throw new UnsupportedOperationException();
}
开发者ID:bizo,项目名称:aws-java-sdk-stubs,代码行数:5,代码来源:AmazonS3Stub.java
示例8: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
// TODO Auto-generated method stub
return null;
}
开发者ID:DemandCube,项目名称:Scribengin,代码行数:6,代码来源:AmazonS3Mock.java
注:本文中的com.amazonaws.services.s3.S3ResponseMetadata类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论