Package org.apache.ivy.util.url
Class URLHandlerRegistry
- java.lang.Object
-
- org.apache.ivy.util.url.URLHandlerRegistry
-
public final class URLHandlerRegistry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static URLHandler
defaultHandler
-
Constructor Summary
Constructors Modifier Constructor Description private
URLHandlerRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URLHandler
getDefault()
static TimeoutConstrainedURLHandler
getHttp()
This method is used to get appropriate http downloader depending on HttpComponents HttpClient availability in classpath, or simply use jdk url handling in other cases.static void
setDefault(URLHandler def)
-
-
-
Field Detail
-
defaultHandler
private static URLHandler defaultHandler
-
-
Method Detail
-
getDefault
public static URLHandler getDefault()
-
setDefault
public static void setDefault(URLHandler def)
-
getHttp
public static TimeoutConstrainedURLHandler getHttp()
This method is used to get appropriate http downloader depending on HttpComponents HttpClient availability in classpath, or simply use jdk url handling in other cases.- Returns:
- most accurate http downloader
-
-