public static class FileDownloadUrlConnection.Configuration extends Object
FileDownloadUrlConnection| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
FileDownloadUrlConnection.Configuration |
connectTimeout(int connectTimeout)
Sets a specified timeout value, in milliseconds, to be used when opening a communications
link to the resource referenced by this URLConnection.
|
FileDownloadUrlConnection.Configuration |
proxy(Proxy proxy)
The connection will be made through the specified proxy.
|
FileDownloadUrlConnection.Configuration |
readTimeout(int readTimeout)
Sets the read timeout to a specified timeout, in milliseconds.
|
public FileDownloadUrlConnection.Configuration proxy(Proxy proxy)
This proxy will be used when invoke URL.openConnection(Proxy)
proxy - the proxy will be applied to the FileDownloadUrlConnectionpublic FileDownloadUrlConnection.Configuration readTimeout(int readTimeout)
If the timeout expires before there is data available for read, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout.
This readTimeout will be applied through
URLConnection.setReadTimeout(int)
readTimeout - an int that specifies the timeout value to be used in
millisecondspublic FileDownloadUrlConnection.Configuration connectTimeout(int connectTimeout)
This connectionTimeout will be applied through
URLConnection.setConnectTimeout(int)
connectTimeout - an int that specifies the connect timeout value in
milliseconds