public class HttpByHttpClient extends BasicObject implements HttpInterface
defaultCache, log, slog| 限定符和类型 | 方法和说明 |
|---|---|
static HttpInterface |
getInstance() |
InputStream |
inputStream(String url,
Object param,
String qqbm,
int cssc,
com.alibaba.fastjson.JSONObject rp,
com.alibaba.fastjson.JSONObject repHeards)
请求
|
db, db, failed, failed, isBlank, requireNonNull, sqlManager, sqlManager, success, success, swtj, valByDefpublic static HttpInterface getInstance()
public InputStream inputStream(String url, Object param, String qqbm, int cssc, com.alibaba.fastjson.JSONObject rp, com.alibaba.fastjson.JSONObject repHeards)
HttpInterfaceinputStream 在接口中 HttpInterfaceurl - 连接param - 参数,请求参数应该是 name1=value1&name2=value2 的形式,或json串,需要自行设置请求头信息。qqbm - 请求编码cssc - 超时时长rp - 请求属性,不能为空,直接调用本方法时,采用new一个json对象repHeards - 响应头信息,需要提前new好对象Copyright © 2024. All rights reserved.