public class TimeoutHttpClientHandler
extends org.apache.ivy.util.url.HttpClientHandler
HttpClientHandler
which uses HttpClient for downloading via http/https
and have support for connection timeouts which otherwise is not supported by default in Apache Ivy.Constructor and Description |
---|
TimeoutHttpClientHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getTimeout() |
org.apache.ivy.util.url.URLHandler.URLInfo |
getURLInfo(URL url) |
InputStream |
openStream(URL url) |
void |
setTimeout(int timeout)
Sets the timeout in millis (http.socket.timeout) when downloading via http/https protocols.
|
download, getHttpClientMajorVersion, getURLInfo, upload
public int getTimeout()
public void setTimeout(int timeout)
public org.apache.ivy.util.url.URLHandler.URLInfo getURLInfo(URL url)
getURLInfo
in interface org.apache.ivy.util.url.URLHandler
getURLInfo
in class org.apache.ivy.util.url.HttpClientHandler
public InputStream openStream(URL url) throws IOException
openStream
in interface org.apache.ivy.util.url.URLHandler
openStream
in class org.apache.ivy.util.url.HttpClientHandler
IOException
Apache Camel