本文整理汇总了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;
}
示例2: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return delegate.getCachedResponseMetadata(request);
}
示例3: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
throw new UnsupportedOperationException();
}
示例4: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return getDelegate().getCachedResponseMetadata(request);
}
示例5: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
{
return null;
}
示例6: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
throw new TajoInternalError(new UnsupportedException());
}
示例7: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(final AmazonWebServiceRequest request) {
throw new UnsupportedOperationException();
}
示例8: getCachedResponseMetadata
import com.amazonaws.services.s3.S3ResponseMetadata; //导入依赖的package包/类
@Override
public S3ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
// TODO Auto-generated method stub
return null;
}