public class ApacheHttpClient extends java.lang.Object implements HttpClient
Modifier and Type | Class and Description |
---|---|
static class |
ApacheHttpClient.Factory |
Constructor and Description |
---|
ApacheHttpClient(org.apache.http.client.HttpClient client,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
protected org.apache.http.protocol.HttpContext |
createContext() |
HttpResponse |
execute(HttpRequest request)
Executes the given request, following any redirects if necessary.
|
public ApacheHttpClient(org.apache.http.client.HttpClient client, java.net.URL url)
public HttpResponse execute(HttpRequest request) throws java.io.IOException
HttpClient
execute
in interface HttpClient
request
- the request to execute.java.io.IOException
- if an I/O error occurs.protected org.apache.http.protocol.HttpContext createContext()
@Deprecated public void close() throws java.io.IOException
HttpClient
close
in interface HttpClient
java.io.IOException
- if an I/O error occurs.