public class WebClient extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
isConnected |
| Modifier and Type | Method and Description |
|---|---|
static WebClientResultInfo |
get(String url) |
static WebClientResultInfo |
get(URL url) |
static WebClientResultInfo |
post(String url,
ArrayList<NameValuePair> postData) |
static WebClientResultInfo |
post(URL url,
ArrayList<NameValuePair> postData) |
static WebClientResultInfo |
sendRequest(String url,
HttpMethod method,
ArrayList<NameValuePair> postData) |
static WebClientResultInfo |
sendRequest(URL url,
HttpMethod method,
ArrayList<NameValuePair> postData) |
static WebClientResultInfo |
sendRequest(WebRequestInfo requestMeta) |
static WebClientResultInfo |
sendRequest(WebRequestInfo requestMeta,
int retryTimes)
Send Request
|
public static WebClientResultInfo sendRequest(WebRequestInfo requestMeta)
public static WebClientResultInfo sendRequest(WebRequestInfo requestMeta, int retryTimes)
requestMeta - request metaretryTimes - must >=1public static WebClientResultInfo sendRequest(URL url, HttpMethod method, ArrayList<NameValuePair> postData) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static WebClientResultInfo sendRequest(String url, HttpMethod method, ArrayList<NameValuePair> postData) throws UnsupportedEncodingException, MalformedURLException
public static WebClientResultInfo post(URL url, ArrayList<NameValuePair> postData) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static WebClientResultInfo post(String url, ArrayList<NameValuePair> postData) throws UnsupportedEncodingException, MalformedURLException
public static WebClientResultInfo get(String url) throws MalformedURLException
MalformedURLExceptionpublic static WebClientResultInfo get(URL url)
Copyright © 2016. All rights reserved.