Class UrlUtil
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.UrlUtil
-
public class UrlUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description UrlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
parse(String url)
static boolean
urlSeemsPrivate(String url)
Tries to infer whether the given URL seems to be a non-public URL.
-
-
-
Method Detail
-
urlSeemsPrivate
public static boolean urlSeemsPrivate(@NotNull String url)
Tries to infer whether the given URL seems to be a non-public URL. Checks the hostname against known local hostnames and known special non-public TLDs. Checks IP-based URLs against loopback and private address ranges. There will be no connections opened or DNS queries issued. Configuration Properties:- teamcity.internal.connection.privateHostnames
- teamcity.internal.connection.specialPurposeTlds
- Parameters:
url
- URL to check- Returns:
- true if the URL seems to be private or is invalid
-
-