Class ProxyConfig

java.lang.Object
com.mimecast.robin.config.server.ProxyConfig

public class ProxyConfig extends Object
Configuration class for proxy settings.

This class provides type-safe access to proxy configuration that is used to proxy emails to another SMTP/ESMTP/LMTP server based on regex matching against connection IP addresses and SMTP verb values.

  • Field Details

  • Constructor Details

    • ProxyConfig

      public ProxyConfig(Map<String,Object> map)
      Constructs a new ProxyConfig instance.
      Parameters:
      map - Configuration map.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Check if proxy is enabled.
      Returns:
      true if proxy is enabled, false otherwise.
    • getRules

      public List<ProxyRule> getRules()
      Get the list of proxy rules.

      Rules are parsed from the configuration map on first access and cached for subsequent calls.

      Returns:
      List of ProxyRule instances.