Class EnvUtils
java.lang.Object
com.clickhouse.client.api.internal.EnvUtils
Environment utility class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLocalhostNameOrAddress(boolean returnAddress) Returns the local host name or IP address.
-
Constructor Details
-
EnvUtils
public EnvUtils()
-
-
Method Details
-
getLocalhostNameOrAddress
Returns the local host name or IP address. Can be used to setRefererHTTP 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
-