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.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase method,
PrintStream logger) |
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.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase method,
PrintStream logger)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.