public class ApacheHttpClient extends Object implements HttpClient
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ApacheHttpClient.Factory |
| 构造器和说明 |
|---|
ApacheHttpClient(org.apache.http.client.HttpClient client,
URL url) |
public ApacheHttpClient(org.apache.http.client.HttpClient client,
URL url)
public HttpResponse execute(HttpRequest request, boolean followRedirects) throws IOException
HttpClientexecute 在接口中 HttpClientrequest - the request to execute.followRedirects - whether to automatically follow redirects.IOException - if an I/O error occurs.public void close()
throws IOException
HttpClientclose 在接口中 HttpClientIOException - if an I/O error occurs.