org.apache.james.util.inetnetwork.model
Interface InetNetwork
- All Known Implementing Classes:
- Inet4Network, Inet6Network
public interface InetNetwork
An InetNetwork represents a IPv4 or IPv6 address with a subnet mask.
The subnet mask allows to represent one or more host (a "network of hosts").
Do not confuse the InetAddress.toString() returning a "hostname/ip_address" (optional hostname)
with the InetNetwork.toString() that returns a "ip_address/subnet_mask".
|
Method Summary |
boolean |
contains(java.net.InetAddress ip)
Return true if the network contains the given name |
contains
boolean contains(java.net.InetAddress ip)
- Return true if the network contains the given name
- Parameters:
name - hostname or ipAddress
- Returns:
- true if the network contains the ip address
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.