| |
|
| java.lang.Object org.apache.lenya.ac.Machine
Machine | public class Machine implements Identifiable,Serializable(Code) | | A machine (representing an IP address).
version: $Id: Machine.java 473861 2006-11-12 03:51:14Z gregor $ |
Constructor Summary | |
public | Machine(String ip) Creates a new machine object. |
Machine | public Machine(String ip) throws AccessControlException(Code) | | Creates a new machine object. This method accepts
numeric IPv4 addresses like "129.168.0.32" ,
numeric IPv6 addresses like "1080::8:800:200C:417A"
as well as hostnames (if DNS resolution is available) like
"localhost" or "www.apache.com" .
Parameters: ip - a String like "192.168.0.32" ,"::1" , .... throws: AccessControlException - when the conversion of theString to an InetAddress failed |
addIPRange | public void addIPRange(IPRange range)(Code) | | Adds an IP range to this machine.
Parameters: range - An IP range this machine belongs to. |
getAddress | public InetAddress getAddress()(Code) | | Returns the IP address.
An IP address. |
getIPRanges | public IPRange[] getIPRanges()(Code) | | Returns the IP ranges this machine belongs to.
An array of IP ranges. |
getIp | public String getIp()(Code) | | Returns the IP address.
The IP address. |
setAddress | public void setAddress(InetAddress _address)(Code) | | Sets the IP address.
Parameters: _address - An IP address. |
|
|
|