类 SmsHttpUtils
java.lang.Object
org.dromara.sms4j.comm.utils.SmsHttpUtils
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static SmsHttpUtilsinstance()cn.hutool.json.JSONObject发送post form 请求cn.hutool.json.JSONObject发送post json请求cn.hutool.json.JSONObject发送post json请求cn.hutool.json.JSONObject发送post url 参数拼装url传输voidsafeSleep(int retryInterval) 线程睡眠
-
构造器详细资料
-
SmsHttpUtils
private SmsHttpUtils()
-
-
方法详细资料
-
instance
-
postJson
发送post json请求- 参数:
url- 请求地址headers- 请求头body- 请求体(json格式字符串)- 返回:
- 返回体
-
postJson
public cn.hutool.json.JSONObject postJson(String url, Map<String, String> headers, Map<String, Object> body) 发送post json请求- 参数:
url- 请求地址headers- 请求头body- 请求体(map格式请求体)- 返回:
- 返回体
-
postFrom
public cn.hutool.json.JSONObject postFrom(String url, Map<String, String> headers, Map<String, Object> body) 发送post form 请求- 参数:
url- 请求地址headers- 请求头body- 请求体(map格式请求体)- 返回:
- 返回体
-
postUrl
public cn.hutool.json.JSONObject postUrl(String url, Map<String, String> headers, Map<String, Object> params) 发送post url 参数拼装url传输- 参数:
url- 请求地址headers- 请求头params- 请求参数- 返回:
- 返回体
-
safeSleep
public void safeSleep(int retryInterval) 线程睡眠- 参数:
retryInterval- 秒
-