Class AllowedDomains

java.lang.Object
com.iizix.server.prop.AllowedDomains

public class AllowedDomains extends Object
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 Details

    • AllowedDomains

      public AllowedDomains(String domains)
      Constructor with the allowed domains, null or empty string for all.
      Parameters:
      domains - The allowed domains.
  • Method Details

    • isDomainAccessAllowed

      public boolean isDomainAccessAllowed(String domain)
      Checks if a domain is allowed access to this environment.
      Parameters:
      domain - The domain name, could be null.
      Returns:
      true for access allowed, false for no access.