public static class OkHttp3Connection.Creator extends Object implements com.liulishuo.filedownloader.util.FileDownloadHelper.ConnectionCreator
| Constructor and Description |
|---|
Creator() |
Creator(okhttp3.OkHttpClient.Builder builder)
Create the Creator with the customized
client. |
| Modifier and Type | Method and Description |
|---|---|
com.liulishuo.filedownloader.connection.FileDownloadConnection |
create(String url) |
okhttp3.OkHttpClient.Builder |
customize()
Get a non-null builder used for customizing the okHttpClient.
|
public Creator()
public Creator(okhttp3.OkHttpClient.Builder builder)
client.builder - the builder for customizing the okHttp client.public okhttp3.OkHttpClient.Builder customize()
If you have already set a builder through the construct method, we will return it directly.
public com.liulishuo.filedownloader.connection.FileDownloadConnection create(String url) throws IOException
create in interface com.liulishuo.filedownloader.util.FileDownloadHelper.ConnectionCreatorIOException