模块 mxlib.api

类 NetManager


  • public class NetManager
    extends Object
    • 字段详细资料

      • URLStreamHandler$class

        public static Class<?> URLStreamHandler$class
      • URLStreamHandlerProvider$class

        public static Class<?> URLStreamHandlerProvider$class
    • 构造器详细资料

      • NetManager

        public NetManager()
    • 方法详细资料

      • setHandler

        public static void setHandler​(@NotNull
                                      @NotNull URL url,
                                      @NotNull
                                      @NotNull URLStreamHandler handler)
      • install

        public static void install​(boolean b)
      • removeProtocol

        public static boolean removeProtocol​(String protocol,
                                             URLStreamHandler handler)
        Remove protocol from URL NetWork
        参数:
        protocol - The target protocol
        handler - The target handler
        返回:
        true if success to remove protocol
        从以下版本开始:
        2.12