public class JreHttpClient extends java.lang.Object implements HttpClient
Modifier and Type | Class and Description |
---|---|
static class |
JreHttpClient.Factory |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connections associated with this client.
|
HttpResponse |
execute(HttpRequest request,
boolean followRedirects)
Executes the given request.
|
public HttpResponse execute(HttpRequest request, boolean followRedirects) throws java.io.IOException
HttpClient
execute
in interface HttpClient
request
- the request to execute.followRedirects
- whether to automatically follow redirects.java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
HttpClient
close
in interface HttpClient
java.io.IOException
- if an I/O error occurs.