Class EnvUtils

java.lang.Object
com.clickhouse.client.api.internal.EnvUtils

public class EnvUtils extends Object
Environment utility class.
  • Constructor Details

    • EnvUtils

      public EnvUtils()
  • Method Details

    • getLocalhostNameOrAddress

      public static String getLocalhostNameOrAddress(boolean returnAddress)
      Returns the local host name or IP address. Can be used to set Referer HTTP header. If fails to find the local host name or address, returns an empty string.
      Parameters:
      returnAddress - if true, return address; otherwise, return name
      Returns:
      string representing the local host name or address