public class HttpsConnetcion extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
connectTimeout
已过时。
|
protected String |
contentCharset
已过时。
|
protected Map<String,List<String>> |
headerFields
已过时。
|
protected String |
post
已过时。
|
protected int |
readTimeout
已过时。
|
protected int |
requestMethod
已过时。
|
protected int |
retry_time
已过时。
|
protected String |
url
已过时。
|
protected String |
userAgent
已过时。
|
| 构造器和说明 |
|---|
HttpsConnetcion(String url)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,List<String>> |
getHeaderFields()
已过时。
|
protected void |
onException(Exception e)
已过时。
异常
|
protected void |
onResponseCodeException(int code)
已过时。
ResponseCode 不等于200
|
String |
request()
已过时。
请求 (GET)
|
String |
request(HashMap<String,String> params,
HashMap<String,File> files)
已过时。
请求 (POST)
|
void |
setConnectTimeout(int connectTimeout)
已过时。
|
void |
setContentCharset(String contentCharset)
已过时。
|
void |
setReadTimeout(int readTimeout)
已过时。
|
void |
setRetry_time(int retry_time)
已过时。
|
void |
setUserAgent(String userAgent)
已过时。
|
protected String contentCharset
protected int readTimeout
protected int connectTimeout
protected int retry_time
protected String userAgent
protected String url
protected String post
protected int requestMethod
public HttpsConnetcion(String url)
url - 网址public void setContentCharset(String contentCharset)
public void setReadTimeout(int readTimeout)
public void setConnectTimeout(int connectTimeout)
public void setRetry_time(int retry_time)
public void setUserAgent(String userAgent)
public String request()
public String request(HashMap<String,String> params, HashMap<String,File> files)
params - 参数files - 文件protected void onException(Exception e)
e - protected void onResponseCodeException(int code)
code - Copyright © 2020. All rights reserved.