|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.dhcp.options.DhcpOption
org.apache.directory.server.dhcp.options.IntOption
org.apache.directory.server.dhcp.options.dhcp.IpAddressLeaseTime
public class IpAddressLeaseTime
This option is used in a client request (DHCPDISCOVER or DHCPREQUEST) to allow the client to request a lease time for the IP address. In a server reply (DHCPOFFER), a DHCP server uses this option to specify the lease time it is willing to offer. The time is in units of seconds, and is specified as a 32-bit unsigned integer. The code for this option is 51, and its length is 4.
| Constructor Summary | |
|---|---|
IpAddressLeaseTime()
|
|
IpAddressLeaseTime(long leaseTime)
|
|
| Method Summary | |
|---|---|
byte |
getTag()
Get the option's code tag. |
| Methods inherited from class org.apache.directory.server.dhcp.options.IntOption |
|---|
getData, getIntValue, setData, setIntValue |
| Methods inherited from class org.apache.directory.server.dhcp.options.DhcpOption |
|---|
getClassByTag, getTagByClass, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IpAddressLeaseTime()
public IpAddressLeaseTime(long leaseTime)
| Method Detail |
|---|
public byte getTag()
DhcpOption
getTag in class DhcpOption
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||