public class ZNIOHttpClient extends Object
| Constructor and Description |
|---|
ZNIOHttpClient() |
ZNIOHttpClient(int workerThreads,
int maxConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadAsync(String url,
Map<String,String> requestHeaders,
HttpResponse.Callback responseCallback) |
void |
setMaxConnection(int maxConnection) |
void |
shutdown() |
public ZNIOHttpClient(int workerThreads,
int maxConnection)
public ZNIOHttpClient()
public void setMaxConnection(int maxConnection)
public void downloadAsync(String url, Map<String,String> requestHeaders, HttpResponse.Callback responseCallback) throws IOException
IOExceptionpublic void shutdown()
throws IOException
IOException