Class HTTPUtil


  • public class HTTPUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.google.common.util.concurrent.ListeningExecutorService DOWNLOAD_EXECUTOR  
      private static org.apache.logging.log4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      HTTPUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.CompletableFuture<?> downloadTo​(java.io.File p_180192_0_, java.lang.String p_180192_1_, java.util.Map<java.lang.String,​java.lang.String> p_180192_2_, int p_180192_3_, IProgressUpdate p_180192_4_, java.net.Proxy p_180192_5_)  
      static int getAvailablePort()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • DOWNLOAD_EXECUTOR

        public static final com.google.common.util.concurrent.ListeningExecutorService DOWNLOAD_EXECUTOR
    • Constructor Detail

      • HTTPUtil

        public HTTPUtil()
    • Method Detail

      • downloadTo

        public static java.util.concurrent.CompletableFuture<?> downloadTo​(java.io.File p_180192_0_,
                                                                           java.lang.String p_180192_1_,
                                                                           java.util.Map<java.lang.String,​java.lang.String> p_180192_2_,
                                                                           int p_180192_3_,
                                                                           @Nullable
                                                                           IProgressUpdate p_180192_4_,
                                                                           java.net.Proxy p_180192_5_)
      • getAvailablePort

        public static int getAvailablePort()