我是靠谱客的博主 懦弱棒棒糖,这篇文章主要介绍Java中original怎么用_Java Request.getOriginalRequest方法代码示例,现在分享给大家,希望可以做个参考。

import com.amazonaws.Request; //导入方法依赖的package包/类

/**

* Returns a "complete" S3 specific signer, taking into the S3 bucket, key,

* and the current S3 client configuration into account.

*/

protected Signer createSigner(final Request> request,

final String bucketName,

final String key,

final boolean isAdditionalHeadRequestToFindRegion) {

// Instead of using request.getEndpoint() for this parameter, we use endpoint which is because

// in accelerate mode, the endpoint in request is regionless. We need the client-wide endpoint

// to fetch the region information and pick the correct signer.

URI uri = clientOptions.isAccelerateModeEnabled() ? endpoint : request.getEndpoint();

final Signer signer = getSignerByURI(uri);

if(this.awsCredentialsProvider.getCredentials() instanceof IBMOAuthCredentials) { </

最后

以上就是懦弱棒棒糖最近收集整理的关于Java中original怎么用_Java Request.getOriginalRequest方法代码示例的全部内容,更多相关Java中original怎么用_Java内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(147)

评论列表共有 0 条评论

立即
投稿
返回
顶部