Class NetworkChecker
java.lang.Object
org.jolokia.server.core.restrictor.policy.AbstractChecker<String[]>
org.jolokia.server.core.restrictor.policy.NetworkChecker
Check whether a host is allowed to access the agent. The restriction
can be specified in the policy file with the
Example:
<remote>
tag. Either plain host or subnet (in the CIDR notation) can be specified
Example:
<remote> <host>planck</host> <host>10.0.11.125</host> <host>11.0.0.0/16</host> <host>192.168.15.3/255.255.255.0</host> </remote>
- Since:
- 02.09.11
- Author:
- roland
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jolokia.server.core.restrictor.policy.AbstractChecker
assertNodeName
-
Constructor Details
-
NetworkChecker
Construct this checker from a given document- Parameters:
pDoc- document to examine for <remote> tags.
-
-
Method Details
-
check
Check for one or more hosts.- Specified by:
checkin classAbstractChecker<String[]>- Parameters:
pHostOrAddresses- array of host names or IP addresses- Returns:
- true if one of the given name passes this checker.
-