public class PoolingHTTPClient extends Object implements HTTPClient
| Constructor and Description |
|---|
PoolingHTTPClient() |
PoolingHTTPClient(int maxConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close http client and release resource
|
HTTPResponse |
fetch(HTTPRequest request)
Fetch HTTP response by given HTTP request,
|
public PoolingHTTPClient(int maxConnection)
public PoolingHTTPClient()
public HTTPResponse fetch(HTTPRequest request) throws IOException, URISyntaxException
HTTPClientfetch in interface HTTPClientrequest - Specify which to be fetched.IOException - connection problem.URISyntaxException - url syntax problem.public void close()
HTTPClientclose in interface HTTPClientCopyright © 2018. All rights reserved.