类 HttpUtil
java.lang.Object
com.sh.weixin.util.HttpUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2014年2月14日
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringgetHttpsRequest(String requestUrl) static JSONObjectgetHttpsRequestWithJson(String requestUrl) static StringgetPostData(jakarta.servlet.http.HttpServletRequest request) 获取POST数据static StringhttpsRequest(String requestUrl, String requestMethod, String param) 发起https请求并获取结果static StringpostHttpsRequest(String requestUrl, String param) static JSONObjectpostHttpsRequestWithJson(String requestUrl, String param)
-
构造器详细资料
-
HttpUtil
public HttpUtil()
-
-
方法详细资料
-
getHttpsRequest
-
getHttpsRequestWithJson
-
postHttpsRequest
-
postHttpsRequestWithJson
-
httpsRequest
发起https请求并获取结果- 参数:
requestUrl- 请求地址requestMethod- 请求方式(GET、POST)param- 提交的数据- 返回:
- JSONObject(通过JSONObject.get(key)的方式获取json对象的属性值)
-
getPostData
获取POST数据- 参数:
request- HttpServletRequest- 返回:
- String
-