public class HttpHelper extends Object
| 构造器和说明 |
|---|
HttpHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<String> |
sendGet(String urlString)
Send get list.
|
static List<String> |
sendGet(String urlString,
Map<String,String> headerMap)
Send get list.
|
static List<String> |
sendGet(String urlString,
Map<String,String> headerMap,
int timeout)
Send get list.
|
static List<String> |
sendGet(String urlString,
Map<String,String> headerMap,
String charset,
int timeout)
Send get list.
|
static List<String> |
sendGet(String urlString,
String charset)
Send get list.
|
static List<String> |
sendGet(String urlString,
String charset,
int timeout)
Send get list.
|
List<String> |
sendPost(String urlPath)
Send post list.
|
List<String> |
sendPost(String urlPath,
String postBody)
Send post list.
|
List<String> |
sendPost(String urlPath,
String postBody,
Map<String,String> headerMap)
Send post list.
|
List<String> |
sendPost(String urlPath,
String postBody,
Map<String,String> headerMap,
String charset)
Send post list.
|
public static List<String> sendGet(String urlString)
urlString - the url stringpublic static List<String> sendGet(String urlString, String charset)
urlString - the url stringcharset - the charsetpublic static List<String> sendGet(String urlString, String charset, int timeout)
urlString - the url stringcharset - the charsettimeout - the timeoutpublic static List<String> sendGet(String urlString, Map<String,String> headerMap)
urlString - the url stringheaderMap - the header mappublic static List<String> sendGet(String urlString, Map<String,String> headerMap, int timeout)
urlString - the url stringheaderMap - the header maptimeout - the timeoutpublic static List<String> sendGet(String urlString, Map<String,String> headerMap, String charset, int timeout)
urlString - the url stringheaderMap - the header mapcharset - the charsettimeout - the timeoutpublic List<String> sendPost(String urlPath)
urlPath - the url pathpublic List<String> sendPost(String urlPath, String postBody)
urlPath - the url pathpostBody - the post bodypublic List<String> sendPost(String urlPath, String postBody, Map<String,String> headerMap)
urlPath - the url pathpostBody - the post bodyheaderMap - the header mapCopyright © 2017. All rights reserved.