-
public final class HostsSanitizerUtility class with the goal to perform host sanitization. Not intended for the public use.
-
-
Constructor Summary
Constructors Constructor Description HostsSanitizer(InternalLogger internalLogger)HostsSanitizer()
-
Method Summary
-
-
Constructor Detail
-
HostsSanitizer
HostsSanitizer(InternalLogger internalLogger)
-
HostsSanitizer
HostsSanitizer()
-
-
Method Detail
-
sanitizeHosts
final List<String> sanitizeHosts(List<String> hosts, String feature)
Sanitizes a list of first-party host entries. Wildcard-free entries are validated as host names (URLs and IPs are tolerated, with a warning for URLs); entries containing a
*are validated as wildcard patterns. Invalid entries are dropped and logged.- Parameters:
hosts- Hosts and wildcard patterns to sanitize.feature- SDK feature requesting the sanitization.
-
-
-
-