Class CidrListLoader
java.lang.Object
org.apache.activemq.util.CidrListLoader
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe parsed entries of one list plus the number of entries that were skipped. -
Field Summary
Fields -
Method Summary
-
Field Details
-
MAX_ENTRIES
public static final int MAX_ENTRIES- See Also:
-
MAX_FILE_BYTES
public static final long MAX_FILE_BYTES- See Also:
-
-
Method Details
-
load
- Parameters:
value- comma separated CIDR blocks, afile:URI, or null/blank for nonelocationHint- names the setting in log messages, e.g. "openwire allowList"
-