@Deprecated public class HttpUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_TIMEOUT
Deprecated.
|
static int |
NORMAL
Deprecated.
|
static int |
SOCKETCOOECTION_TIMEOUT
Deprecated.
|
| Constructor and Description |
|---|
HttpUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.impl.client.CloseableHttpClient |
createSSLClientDefault()
Deprecated.
|
static String |
get(String url,
Map<String,String> paramsMap)
Deprecated.
|
static String |
get(String url,
org.apache.http.NameValuePair[] nameValuePair)
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
static String |
post(String url,
Map<String,String> paramsMap)
Deprecated.
|
static String |
post(String url,
org.apache.http.NameValuePair[] nameValuePair)
Deprecated.
|
public static final int CONNECTION_TIMEOUT
public static final int SOCKETCOOECTION_TIMEOUT
public static final int NORMAL
public static org.apache.http.impl.client.CloseableHttpClient createSSLClientDefault()
public static String get(String url, Map<String,String> paramsMap) throws YunpianException
YunpianExceptionpublic static String get(String url, org.apache.http.NameValuePair[] nameValuePair) throws YunpianException
YunpianExceptionpublic static String post(String url, org.apache.http.NameValuePair[] nameValuePair) throws YunpianException
YunpianExceptionpublic static String post(String url, Map<String,String> paramsMap) throws YunpianException
YunpianExceptionpublic static void main(String[] args)
Copyright © 2017. All rights reserved.