SDK初始化报错
ReSDK初始化报错
谁帮个忙?
-------------------------
ReSDK初始化报错
真来火,发布一个SDK,也不好好测一测,就丢出来,还用那么高版本的jar,这不是在害人吗?
-------------------------
ReSDK初始化报错
真没法用,一堆的红叉,竟然能跑起来,这哪是是在做产品啊?
-------------------------
ReSDK初始化报错
为什么这个方法是过时的呢?
getObjectName()
/**
* Options object.
*/
public ResponseMessage optionsObject(OptionsRequest optionsRequest) {
assertParameterNotNull(optionsRequest, 'optionsRequest');
String bucketName = optionsRequest.getBucketName();
assertParameterNotNull(bucketName, 'bucketName');
ensureBucketNameValid(bucketName);
@SuppressWarnings('deprecation')
RequestMessage request = new OSSRequestMessageBuilder(getInnerClient())
.setEndpoint(getEndpoint())
.setMethod(HttpMethod.OPTIONS)
.setBucket(bucketName)
.setKey(optionsRequest.getObjectName())
.addHeader(OSSHeaders.ORIGIN, optionsRequest.getOrigin())
.addHeader(OSSHeaders.ACCESS_CONTROL_REQUEST_METHOD, optionsRequest.getRequestMethod().name())
.addHeader(OSSHeaders.ACCESS_CONTROL_REQUEST_HEADER, optionsRequest.getRequestHeaders())
.setOriginalRequest(optionsRequest)
.build();
return doOperation(request, emptyResponseParser, bucketName, null);
}
赞0
踩0