package util;
import com.qcloud.cos.endpoint.DefaultEndpointResolver;
import com.qcloud.cos.endpoint.EndpointBuilder;
import com.qcloud.cos.endpoint.EndpointResolver;
import com.qcloud.cos.endpoint.RegionEndpointBuilder;
import com.qcloud.cos.endpoint.SuffixEndpointBuilder;
import com.qcloud.cos.http.HttpProtocol;
import com.qcloud.cos.region.Region;
import com.qcloud.cos.retry.BackoffStrategy;
import com.qcloud.cos.retry.PredefinedBackoffStrategies;
import com.qcloud.cos.retry.PredefinedRetryPolicies;
import com.qcloud.cos.retry.RetryPolicy;
import com.qcloud.cos.utils.VersionInfoUtils;
public class ClientConfig {
private static final int DEFAULT_CONNECTION_REQUEST_TIMEOUT = -1;
private static final int DEFAULT_CONNECTION_TIMEOUT = 30000;
private static final int DEFAULT_SOCKET_TIMEOUT = 30000;
private static final int DEFAULT_MAX_CONNECTIONS_COUNT = 1024;
private static final long DEFAULT_SIGN_EXPIRED = 3600L;
private static final String DEFAULT_USER_AGENT = VersionInfoUtils.getUserAgent();
private static final int DEFAULT_READ_LIMIT = 262145;
private static final int DEFAULT_RETRY_TIMES = 3;
private int maxErrorRetry = 3;
private static final RetryPolicy DEFAULT_RETRY_POLICY;
public static final BackoffStrategy DEFAULT_BACKOFF_STRATEGY;
private Region region;
private HttpProtocol httpProtocol;
private String endPointSuffix;
private EndpointBuilder endpointBuilder;
private EndpointResolver endpointResolver;
private RetryPolicy retryPolicy;
private BackoffStrategy backoffStrategy;
private String httpProxyIp;
private int httpProxyPort;
private String proxyUsername;
private String proxyPassword;
private boolean useBasicAuth;
private long signExpired;
private int connectionRequestTimeout;
private int connectionTimeout;
private int socketTimeout;
private int maxConnectionsCount;
private String userAgent;
private int readLimit;
public ClientConfig() {
this.httpProtocol = HttpProtocol.http;
this.endPointSuffix = null;
this.endpointBuilder = null;
this.endpointResolver = new DefaultEndpointResolver();
this.retryPolicy = DEFAULT_RETRY_POLICY;
this.backoffStrategy = DEFAULT_BACKOFF_STRATEGY;
this.httpProxyIp = null;
this.httpProxyPort = 0;
this.proxyUsername = null;
this.proxyPassword = null;
this.useBasicAuth = false;
this.signExpired = 3600L;
this.connectionRequestTimeout = -1;
this.connectionTimeout = 30000;
this.socketTimeout = 30000;
this.maxConnectionsCount = 1024;
this.userAgent = DEFAULT_USER_AGENT;
this.readLimit = 262145;
this.region = null;
this.endpointBuilder = new RegionEndpointBuilder(this.region);
}
public ClientConfig(Region region) {
this.httpProtocol = HttpProtocol.http;
this.endPointSuffix = null;
this.endpointBuilder = null;
this.endpointResolver = new DefaultEndpointResolver();
this.retryPolicy = DEFAULT_RETRY_POLICY;
this.backoffStrategy = DEFAULT_BACKOFF_STRATEGY;
this.httpProxyIp = null;
this.httpProxyPort = 0;
this.proxyUsername = null;
this.proxyPassword = null;
this.useBasicAuth = false;
this.signExpired = 3600L;
this.connectionRequestTimeout = -1;
this.connectionTimeout = 30000;
this.socketTimeout = 30000;
this.maxConnectionsCount = 1024;
this.userAgent = DEFAULT_USER_AGENT;
this.readLimit = 262145;
this.region = region;
this.endpointBuilder = new RegionEndpointBuilder(this.region);
}
public Region getRegion() {
return this.region;
}
public void setRegion(Region region) {
this.region = region;
this.endpointBuilder = new RegionEndpointBuilder(this.region);
}
public HttpProtocol getHttpProtocol() {
return this.httpProtocol;
}
public void setHttpProtocol(HttpProtocol httpProtocol) {
this.httpProtocol = httpProtocol;
}
public String getHttpProxyIp() {
return this.httpProxyIp;
}
public void setHttpProxyIp(String httpProxyIp) {
this.httpProxyIp = httpProxyIp;
}
public int getHttpProxyPort() {
return this.httpProxyPort;
}
public void setHttpProxyPort(int httpProxyPort) {
this.httpProxyPort = httpProxyPort;
}
public long getSignExpired() {
return this.signExpired;
}
public void setSignExpired(long signExpired) {
this.signExpired = signExpired;
}
public int getConnectionRequestTimeout() {
return this.connectionRequestTimeout;
}
public void setConnectionRequestTimeout(int connectionRequestTimeout) {
this.connectionRequestTimeout = connectionRequestTimeout;
}
public int getConnectionTimeout() {
return this.connectionTimeout;
}
public void setConnectionTimeout(int connectionTimeout) {
this.connectionTimeout = connectionTimeout;
}
public int getSocketTimeout() {
return this.socketTimeout;
}
public void setSocketTimeout(int socketTimeout) {
this.socketTimeout = socketTimeout;
}
public int getMaxConnectionsCount() {
return this.maxConnectionsCount;
}
public void setMaxConnectionsCount(int maxConnectionsCount) {
this.maxConnectionsCount = maxConnectionsCount;
}
public void setUserAgent(String userAgent) {
this.userAgent = userAgent;
}
public String getUserAgent() {
return this.userAgent;
}
/** @deprecated */
@Deprecated
public String getEndPointSuffix() {
return this.endPointSuffix;
}
/** @deprecated */
@Deprecated
public void setEndPointSuffix(String endPointSuffix) {
this.endPointSuffix = endPointSuffix;
this.endpointBuilder = new SuffixEndpointBuilder(endPointSuffix);
}
public int getReadLimit() {
return this.readLimit;
}
public void setReadLimit(int readLimit) {
this.readLimit = readLimit;
}
public EndpointBuilder getEndpointBuilder() {
return this.endpointBuilder;
}
public void setEndpointBuilder(EndpointBuilder endpointBuilder) {
this.endpointBuilder = endpointBuilder;
}
public EndpointResolver getEndpointResolver() {
return this.endpointResolver;
}
public void setEndpointResolver(EndpointResolver endpointResolver) {
this.endpointResolver = endpointResolver;
}
public String getProxyUsername() {
return this.proxyUsername;
}
public void setProxyUsername(String proxyUsername) {
this.proxyUsername = proxyUsername;
}
public String getProxyPassword() {
return this.proxyPassword;
}
public void setProxyPassword(String proxyPassword) {
this.proxyPassword = proxyPassword;
}
public void setUseBasicAuth(boolean useBasicAuth) {
this.useBasicAuth = useBasicAuth;
}
public boolean useBasicAuth() {
return this.useBasicAuth;
}
public int getMaxErrorRetry() {
return this.maxErrorRetry;
}
public void setMaxErrorRetry(int maxErrorRetry) {
this.maxErrorRetry = maxErrorRetry;
}
public RetryPolicy getRetryPolicy() {
return this.retryPolicy;
}
public void setRetryPolicy(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
}
public BackoffStrategy getBackoffStrategy() {
return this.backoffStrategy;
}
public void setBackoffStrategy(BackoffStrategy backoffStrategy) {
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
springboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvcspringboot音乐聊天室系统+mybatias+sprigmvc
资源推荐
资源详情
资源评论
收起资源包目录
springboot音乐聊天室系统 (329个子文件)
ClientConfig.class 7KB
ClientConfig.class 7KB
PutObjectRequest.class 5KB
PutObjectRequest.class 5KB
SysUser.class 5KB
SysUser.class 5KB
FileUtil.class 4KB
FileUtil.class 4KB
Accountmysql.class 4KB
Accountmysql.class 4KB
Systext.class 3KB
Systext.class 3KB
insertdh.class 3KB
insertdh.class 3KB
Sysmusic.class 3KB
Sysmusic.class 3KB
method.class 3KB
method.class 3KB
sendmail.class 3KB
sendmail.class 3KB
PutObjectResult.class 2KB
PutObjectResult.class 2KB
fileupload.class 2KB
fileupload.class 2KB
update.class 2KB
update.class 2KB
musicd.class 2KB
musicd.class 2KB
insertspaus.class 2KB
insertspaus.class 2KB
zhu.class 2KB
zhu.class 2KB
Signin.class 2KB
Signin.class 2KB
tt.class 2KB
tt.class 2KB
textone.class 2KB
textone.class 2KB
music.class 2KB
music.class 2KB
textlo.class 2KB
textlo.class 2KB
imgutil.class 2KB
imgutil.class 2KB
Mysql.class 1KB
Mysql.class 1KB
musicj.class 1KB
musicj.class 1KB
JDPC.class 1KB
JDPC.class 1KB
insertspaus$1.class 903B
insertspaus$1.class 903B
delemusic.class 765B
delemusic.class 765B
application-2415642452ba27a785689d1ed495bfed.css 1.41MB
application-2415642452ba27a785689d1ed495bfed.css 1.41MB
font_666204_xmxgte4zjil.css 462KB
font_666204_xmxgte4zjil.css 462KB
1.css 273KB
1.css 273KB
components.css 206KB
components.css 206KB
bootstrap.min.css 189KB
bootstrap.min.css 189KB
style.css 126KB
style.css 126KB
all.min.css 54KB
all.min.css 54KB
swa.css 35KB
swa.css 35KB
3.css 16KB
3.css 16KB
2.css 15KB
2.css 15KB
4.css 8KB
4.css 8KB
share_style1_32.css 5KB
share_style1_32.css 5KB
info.css 678B
info.css 678B
RB软工移184201819144428易成龙.doc 27.28MB
RB软工移184201819144409张蛟龙.doc 25.76MB
RB软工移184 201819144414 刘恩.doc 24.79MB
RB软工移184201819144422毛纪.doc 21.84MB
RB软工移184201819144407安鹏程.doc 4.79MB
RB软工移184201819144406高子翔.doc 3.8MB
RB软工移184201819144425孟紫茵.doc 3.78MB
font_666204_xmxgte4zjil.eot 360KB
font_666204_xmxgte4zjil.eot 360KB
font_666204_xmxgte4zjil.eot 360KB
font_666204_xmxgte4zjil.eot 360KB
.gitignore 0B
bcprov-jdk15on-1.64.jar 4.55MB
mybatis-3.5.5.jar 1.66MB
lombok-1.18.8.jar 1.65MB
jackson-databind-2.10.3.jar 1.34MB
mysql-connector-java-5.1.40.jar 968KB
httpclient-4.5.3.jar 730KB
cos_api-5.6.24.jar 639KB
joda-time-2.9.9.jar 619KB
共 329 条
- 1
- 2
- 3
- 4
资源评论
- WindPursuer2023-03-19没什么太大价值,重要的音乐播放是调用第三方开发好的bbbug音乐聊天室api,现在已经不可用了。没有参考意义
- m0_635815862023-05-29资源中能够借鉴的内容很多,值得学习的地方也很多,大家一起进步!
teayear
- 粉丝: 4w+
- 资源: 179
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功