com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-batchcompute Show documentation
Show all versions of aliyun-java-sdk-batchcompute Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
package com.aliyuncs.batchcompute.main.v20151111;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.RoaAcsRequest;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Created by guangchun.luo on 15/12/7.
*/
public abstract class BatchComputeRequest extends RoaAcsRequest {
public BatchComputeRequest(String product) {
super(product);
attachCommonHeaders();
}
public BatchComputeRequest(String product, String version) {
super(product, version);
attachCommonHeaders();
}
public BatchComputeRequest(String product, String version, String action) {
super(product, version, action);
attachCommonHeaders();
}
private void attachCommonHeaders(){
Set keys = commonHeaders.keySet();
for(String key: keys){
this.putHeaderParameter(key, commonHeaders.get(key));
}
}
protected static Map commonHeaders = new HashMap();
protected static void setCommonHeader(String key, String value){
commonHeaders.put(key,value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy