python 代码实例1

贡献者:游客36044959 类别:代码 时间:2018-05-26 16:32:38 收藏数:644 评分:0.4
返回上页 举报此文章
请选择举报理由:




收藏到我的文章 改错字
package com.cloud.apigateway.sdk.demo;
import java.io.InputStream;
import java.net.URL;
import java.util.Map;
import org.apache.http.HttpResponse;
import com.cloud.sdk.http.HttpMethodName;
public abstract class AccessService {
protected String serviceName = null;
protected String region = null;
protected String ak = null;
protected String sk = null;
public AccessService(String serviceName, String region, String ak, String sk) {
this.region = region;
this.serviceName = serviceName;
this.ak = ak;
this.sk = sk;
}
public abstract HttpResponse access(URL url, Map<String, String> header, InputStream content,
Long contentLength,
HttpMethodName httpMethod) throws Exception;
public HttpResponse access(URL url, Map<String, String> header, HttpMethodName httpMethod)
throws Exception {
return this.access(url, header, null, 0l, httpMethod);
}
public HttpResponse access(URL url, InputStream content, Long contentLength, HttpMethodName
httpMethod)
throws Exception {
return this.access(url, null, content, contentLength, httpMethod);
}
public HttpResponse access(URL url, HttpMethodName httpMethod) throws Exception {
return this.access(url, null, null, 0l, httpMethod);
}
public abstract void close();
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public String getAk() {
return ak;
}
public void setAk(String ak) {
this.ak = ak;
}
public String getSk() {
return sk;
}
public void setSk(String sk) {
this.sk = sk;
}
}
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章热度:
文章难度:
文章质量:
认证文章
说明:系统根据文章的热度、难度、质量自动认证,已认证的文章将参与打字排名!

本文打字排名TOP20

用户更多文章推荐