python typing与之配合_python 代码实例1

python 代码实例1

Contributor:游客36044959 Type:代码 Date time:2018-05-26 16:32:38 Favorite:308 Score:1

返回上页

Report

请选择举报理由:

Advertising

Politically

Pornographic

Garbage article

Other

Collection

Modify the typo

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 header, InputStream content,

Long contentLength,

HttpMethodName httpMethod) throws Exception;

public HttpResponse access(URL url, Map 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;

}

}

Next one:弟子规

声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值