Package org.jboss.ejb._private
Class NetworkUtil
- java.lang.Object
-
- org.jboss.ejb._private.NetworkUtil
-
public class NetworkUtil extends Object
- Author:
- Jaikiran Pai
-
-
Constructor Summary
Constructors Constructor Description NetworkUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbelongsToNetwork(InetAddress address, InetAddress networkAddress, int networkMask)Returns true if the passedaddressis part of the network represented by the passednetworkAddressandnetworkMask.static StringformatPossibleIpv6Address(String address)
-
-
-
Method Detail
-
belongsToNetwork
public static boolean belongsToNetwork(InetAddress address, InetAddress networkAddress, int networkMask)
Returns true if the passedaddressis part of the network represented by the passednetworkAddressandnetworkMask. Else returns false- Parameters:
address- The address being checkednetworkAddress- The network addressnetworkMask- The network mask bits- Returns:
-
-