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, uploadpublic 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.URLHandlergetURLInfo in class org.apache.ivy.util.url.HttpClientHandlerpublic InputStream openStream(URL url) throws IOException
openStream in interface org.apache.ivy.util.url.URLHandleropenStream in class org.apache.ivy.util.url.HttpClientHandlerIOExceptionApache Camel