All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.batchcompute.main.v20151111.BatchComputeRequest Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 6.2.4
Show newest version
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