Enum Class Proxy

java.lang.Object
java.lang.Enum<Proxy>
org.refcodes.web.Proxy
All Implemented Interfaces:
Serializable, Comparable<Proxy>, Constable

public enum Proxy extends Enum<Proxy>
The Enum Proxy.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
     
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the proxy from the settings of the environment variables if non according proxy settings are found in the system properties.
    static void
    Initializes the proxy for all proxy enumeration elements, e.g. calls initialize() on each element in this enumeration.
    protected static void
    toProxySettings(org.refcodes.runtime.EnvironmentVariable aFromEnvProxy, org.refcodes.runtime.SystemProperty aToSysHost, org.refcodes.runtime.SystemProperty aToSysPort, org.refcodes.data.Scheme aProtocol)
    To proxy settings.
    static Proxy
    Returns the enum constant of this class with the specified name.
    static Proxy[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static Proxy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Proxy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.runtime.EnvironmentVariable aFromEnvProxy, org.refcodes.runtime.SystemProperty aToSysHost, org.refcodes.runtime.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