Class AllowedDomains
java.lang.Object
com.iizix.server.prop.AllowedDomains
Helper class for allowed domains.
Public since B-7b: the WebSocket Origin allow-list (com.iizix.server.hub.HubOrigins, HUB-DESIGN.md 3.6) matches an origin's host against every environment's domains with it.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionAllowedDomains(String domains) Constructor with the allowed domains, null or empty string for all.Method Summary
Modifier and TypeMethodDescriptionbooleanisDomainAccessAllowed(String domain) Checks if a domain is allowed access to this environment.
Constructor Details
AllowedDomains
Constructor with the allowed domains, null or empty string for all.- Parameters:
domains- The allowed domains.
Method Details
isDomainAccessAllowed
Checks if a domain is allowed access to this environment.- Parameters:
domain- The domain name, could benull.- Returns:
- true for access allowed, false for no access.