Class CidrListLoader

java.lang.Object
org.apache.activemq.util.CidrListLoader

public final class CidrListLoader extends Object
Loads a CIDR allow or deny list from a transport connector setting. The value is either a comma separated list of CIDR blocks or a file: URI to a text file with one CIDR block per line (# starts a comment). Only the file scheme is accepted, and the URI may use the ${activemq.conf} and ${activemq.data} macros, which expand from system properties.

Malformed CIDR entries are logged and skipped, and their number is reported on the result. Anything wrong with the file reference itself (scheme, path traversal, missing file, more than 100000 entries or more than 10485760L bytes) is a configuration error and throws.

  • Field Details

  • Method Details

    • load

      public static CidrListLoader.CidrList load(String value, String locationHint)
      Parameters:
      value - comma separated CIDR blocks, a file: URI, or null/blank for none
      locationHint - names the setting in log messages, e.g. "openwire allowList"