|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutils.HttpClient
public class HttpClient
HttpClient utils
| Constructor Summary | |
|---|---|
HttpClient()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getRequest(java.lang.String url)
get request |
static org.codehaus.jackson.JsonNode |
postRequest(java.lang.String url,
org.apache.commons.httpclient.NameValuePair[] parameters)
post request |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClient()
| Method Detail |
|---|
public static org.codehaus.jackson.JsonNode postRequest(java.lang.String url,
org.apache.commons.httpclient.NameValuePair[] parameters)
throws org.apache.http.HttpException,
java.io.IOException
url - url for requestparameters - parameters for request
org.apache.http.HttpException - request return code different 200
java.io.IOException - request is not correct
public static java.lang.String getRequest(java.lang.String url)
throws org.apache.http.HttpException,
java.io.IOException
url - url for request
org.apache.http.HttpException - request return code different 200
java.io.IOException - request is not correct
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||