Enum Proxy

    • Enum Constant Detail

      • HTTP

        public static final Proxy HTTP
      • HTTPS

        public static final Proxy HTTPS
      • SOCKS

        public static final Proxy SOCKS
      • SOCKS4

        public static final Proxy SOCKS4
      • SOCKS5

        public static final Proxy SOCKS5
    • Method Detail

      • values

        public static Proxy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Proxy c : Proxy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Proxy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • initialize

        public void initialize()
        Initializes the proxy from the settings of the environment variables if non according proxy settings are found in the system properties.
      • initializeAll

        public static void initializeAll()
        Initializes the proxy for all proxy enumeration elements, e.g. calls initialize() on each element in this enumeration.
      • toProxySettings

        protected static void toProxySettings​(org.refcodes.data.EnvironmentVariable aFromEnvProxy,
                                              org.refcodes.data.SystemProperty aToSysHost,
                                              org.refcodes.data.SystemProperty aToSysPort,
                                              org.refcodes.data.Scheme aProtocol)
        To proxy settings.
        Parameters:
        aFromEnvProxy - the from env proxy
        aToSysHost - the to sys host
        aToSysPort - the to sys port
        aProtocol - the protocol