Package com.mimecast.robin.config.server
Class ProxyConfig
java.lang.Object
com.mimecast.robin.config.server.ProxyConfig
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
rules
-
-
Constructor Details
-
ProxyConfig
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
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.
-