public class Subnet extends DhcpConfigElement
PROPERTY_MAX_LEASE_TIME
Constructor and Description |
---|
Subnet(InetAddress address,
InetAddress netmask,
InetAddress rangeMin,
InetAddress rangeMax) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(InetAddress clientAddress)
Check whether the given client address resides within this subnet and
possibly range.
|
InetAddress |
getAddress() |
InetAddress |
getNetmask() |
InetAddress |
getRangeMax() |
InetAddress |
getRangeMin() |
boolean |
isInRange(InetAddress clientAddress)
Check whether the specified address is within the range for this subnet.
|
void |
setRangeMax(InetAddress rangeMax) |
void |
setRangeMin(InetAddress rangeMin) |
getOptions, getProperties
public Subnet(InetAddress address, InetAddress netmask, InetAddress rangeMin, InetAddress rangeMax)
public InetAddress getAddress()
public InetAddress getNetmask()
public InetAddress getRangeMax()
public void setRangeMax(InetAddress rangeMax)
public InetAddress getRangeMin()
public void setRangeMin(InetAddress rangeMin)
public boolean contains(InetAddress clientAddress)
clientAddress
- public boolean isInRange(InetAddress clientAddress)
clientAddress
- Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.