public class HttpClientUtil extends Object
| Constructor and Description |
|---|
HttpClientUtil() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpRequestBase |
createRequestBase(RequestAction requestAction) |
org.apache.http.HttpResponse |
execute(org.apache.http.impl.client.DefaultHttpClient client,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase method,
PrintStream logger,
Integer timeout) |
org.apache.http.client.methods.HttpDelete |
makeDelete(RequestAction requestAction) |
org.apache.http.client.methods.HttpGet |
makeGet(RequestAction requestAction) |
org.apache.http.client.methods.HttpHead |
makeHead(RequestAction requestAction) |
org.apache.http.client.methods.HttpPatch |
makePatch(RequestAction requestAction) |
org.apache.http.client.methods.HttpPost |
makePost(RequestAction requestAction) |
org.apache.http.client.methods.HttpPut |
makePut(RequestAction requestAction) |
public org.apache.http.client.methods.HttpRequestBase createRequestBase(RequestAction requestAction) throws IOException
IOExceptionpublic org.apache.http.client.methods.HttpGet makeGet(RequestAction requestAction) throws IOException
IOExceptionpublic org.apache.http.client.methods.HttpHead makeHead(RequestAction requestAction) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic org.apache.http.client.methods.HttpPost makePost(RequestAction requestAction) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic org.apache.http.client.methods.HttpPut makePut(RequestAction requestAction) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic org.apache.http.client.methods.HttpPatch makePatch(RequestAction requestAction) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic org.apache.http.client.methods.HttpDelete makeDelete(RequestAction requestAction) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic org.apache.http.HttpResponse execute(org.apache.http.impl.client.DefaultHttpClient client,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase method,
PrintStream logger,
Integer timeout)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.