Class ZNIOHttpClient
- java.lang.Object
-
- com.zing.zalo.zbrowser.downloader.ZNIOHttpClient
-
public class ZNIOHttpClient extends Object
-
-
Constructor Summary
Constructors Constructor Description ZNIOHttpClient()ZNIOHttpClient(int workerThreads, int maxConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadAsync(String url, Map<String,String> requestHeaders, HttpResponse.Callback responseCallback)voidsetMaxConnection(int maxConnection)voidshutdown()
-
-
-
Method Detail
-
setMaxConnection
public void setMaxConnection(int maxConnection)
-
downloadAsync
public void downloadAsync(String url, Map<String,String> requestHeaders, HttpResponse.Callback responseCallback) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown() throws IOException- Throws:
IOException
-
-