Class URLHandlerRegistry

java.lang.Object
org.apache.ivy.util.url.URLHandlerRegistry

public final class URLHandlerRegistry extends Object
  • Field Details

    • defaultHandler

      private static URLHandler defaultHandler
  • Constructor Details

    • URLHandlerRegistry

      private URLHandlerRegistry()
  • Method Details

    • 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