Package org.jolokia.server.core.util
Class IpChecker
java.lang.Object
org.jolokia.server.core.util.IpChecker
Checks whether a certain ip adresse is either equal another
address or falls within a subnet
- Since:
- Oct 8, 2009
- Author:
- roland
-
Method Summary
-
Method Details
-
matches
Check whether a given IP Adress falls within a subnet or is equal to- Parameters:
pExpected- either a simple IP adress (without "/") or a net specification including a netmask (e.g "/24" or "/255.255.255.0")pToCheck- the ip address to check- Returns:
- true if either the address to check is the same as the address expected of falls within the subnet if a netmask is given
-