Class AEPluginProxyHandler


  • public class AEPluginProxyHandler
    extends java.lang.Object
    • Field Detail

      • plugin_init_complete

        private static final AESemaphore plugin_init_complete
      • enable_plugin_proxies_with_socks

        private static boolean enable_plugin_proxies_with_socks
      • proxy_list

        private static final CopyOnWriteSet<java.net.SocketAddress> proxy_list
      • tor_install_lock

        private static java.lang.Object tor_install_lock
      • declines

        private static java.util.Map<java.lang.String,​java.lang.Long> declines
      • tor_installing

        private static boolean tor_installing
    • Constructor Detail

      • AEPluginProxyHandler

        public AEPluginProxyHandler()
    • Method Detail

      • initialise

        public static void initialise​(Core core)
      • pluginRemoved

        private static void pluginRemoved​(PluginInterface pi)
      • waitForPlugins

        private static boolean waitForPlugins​(int max_wait)
      • hasPluginProxyForNetwork

        public static boolean hasPluginProxyForNetwork​(java.lang.String network,
                                                       boolean supports_data)
      • getPluginProxyForNetwork

        private static PluginInterface getPluginProxyForNetwork​(java.lang.String network,
                                                                boolean supports_data)
      • hasPluginProxy

        public static boolean hasPluginProxy()
      • isEnabled

        private static boolean isEnabled()
      • getPluginProxy

        public static AEPluginProxyHandler.PluginProxyImpl getPluginProxy​(java.lang.String reason,
                                                                          java.net.URL target,
                                                                          java.util.Map<java.lang.String,​java.lang.Object> properties,
                                                                          boolean can_wait)
      • getPluginProxy

        public static AEPluginProxyHandler.PluginProxyImpl getPluginProxy​(java.lang.String reason,
                                                                          java.lang.String host,
                                                                          int port,
                                                                          java.util.Map<java.lang.String,​java.lang.Object> properties)
      • isPluginProxy

        public static boolean isPluginProxy​(java.net.SocketAddress address)
      • testPluginHTTPProxy

        public static java.lang.Boolean testPluginHTTPProxy​(java.net.URL url,
                                                            boolean can_wait,
                                                            java.lang.String reason)
      • getPluginHTTPProxyProviders

        public static java.util.List<PluginInterface> getPluginHTTPProxyProviders​(boolean can_wait)
      • getPluginServerProxy

        public static java.util.Map<java.lang.String,​java.lang.Object> getPluginServerProxy​(java.lang.String reason,
                                                                                                  java.lang.String network,
                                                                                                  java.lang.String server_uid,
                                                                                                  java.util.Map<java.lang.String,​java.lang.Object> options)
      • getPluginDHTProxy

        public static DHTPluginInterface getPluginDHTProxy​(java.lang.String reason,
                                                           java.lang.String network,
                                                           java.util.Map<java.lang.String,​java.lang.Object> options)
      • checkPluginInstallation

        private static void checkPluginInstallation​(java.lang.String network,
                                                    java.lang.String reason)
      • installTor

        private static boolean installTor​(java.lang.String extra_text,
                                          java.lang.String remember_id,
                                          boolean[] install_outcome,
                                          java.lang.Runnable callback)