public class BHttpResUtil extends Object
| 构造器和说明 |
|---|
BHttpResUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.alibaba.fastjson.JSONObject |
sendHttpFilePostRequest(String urlStr,
com.alibaba.fastjson.JSONObject params)
发送包含文件的post请求(未完成)
|
static com.alibaba.fastjson.JSONObject |
sendHttpGetRequest(String url) |
static com.alibaba.fastjson.JSONObject |
sendHttpPostRequest(String url,
com.alibaba.fastjson.JSONObject params) |
static String |
sendHttpPostRequest(String url,
String xmlString) |
static com.alibaba.fastjson.JSONObject |
sendSSLGetRequest(String url) |
static com.alibaba.fastjson.JSONObject |
sendSSLPostRequest(String url,
com.alibaba.fastjson.JSONObject params) |
static com.alibaba.fastjson.JSONObject |
sendSSLPostRequest(String url,
String jsonString) |
static <T> void |
writeResResult(BHttpResContent<T> bHttpResContent,
javax.servlet.http.HttpServletResponse response)
写入返回数据
|
static <T> void |
writeResResult4JSONP(BHttpResContent<T> bHttpResContent,
javax.servlet.http.HttpServletResponse response)
写入返回数据 (JSONP 格式)
|
public static <T> void writeResResult(BHttpResContent<T> bHttpResContent, javax.servlet.http.HttpServletResponse response)
T - bHttpResContent - response - public static <T> void writeResResult4JSONP(BHttpResContent<T> bHttpResContent, javax.servlet.http.HttpServletResponse response)
T - bHttpResContent - response - public static com.alibaba.fastjson.JSONObject sendHttpPostRequest(String url, com.alibaba.fastjson.JSONObject params)
public static com.alibaba.fastjson.JSONObject sendHttpGetRequest(String url)
public static com.alibaba.fastjson.JSONObject sendSSLPostRequest(String url, com.alibaba.fastjson.JSONObject params)
public static com.alibaba.fastjson.JSONObject sendSSLPostRequest(String url, String jsonString)
public static com.alibaba.fastjson.JSONObject sendSSLGetRequest(String url)
Copyright © 2017. All rights reserved.