com.belerweb.social.http
Class Http
java.lang.Object
com.belerweb.social.http.Http
public final class Http
- extends Object
|
Field Summary |
static org.apache.http.client.HttpClient |
CLIENT
|
|
Constructor Summary |
Http()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIENT
public static final org.apache.http.client.HttpClient CLIENT
Http
public Http()
get
public static String get(String uri,
List<org.apache.http.NameValuePair> params)
throws HttpException
- Throws:
HttpException
get
public static String get(String uri,
org.apache.http.Header... headers)
throws HttpException
- Throws:
HttpException
post
public static String post(String uri,
org.apache.http.HttpEntity postBody,
org.apache.http.Header... headers)
throws HttpException
- Throws:
HttpException
post
public static String post(String uri,
List<org.apache.http.NameValuePair> params,
String charset,
org.apache.http.Header... headers)
throws HttpException
- Throws:
HttpException
post
public static String post(String uri)
throws HttpException
- Throws:
HttpException
isRequestSuccess
public static boolean isRequestSuccess(org.apache.http.HttpResponse response)
throws HttpException
- Throws:
HttpException
responseToString
public static String responseToString(org.apache.http.HttpResponse response)
throws HttpException
- Throws:
HttpException
randomAgent
public static String randomAgent()
newClient
public static org.apache.http.client.HttpClient newClient()
Copyright © 2014. All Rights Reserved.