org.apache.directory.server.dhcp.options.dhcp
Class IpAddressLeaseTime

java.lang.Object
  extended by org.apache.directory.server.dhcp.options.DhcpOption
      extended by org.apache.directory.server.dhcp.options.IntOption
          extended by org.apache.directory.server.dhcp.options.dhcp.IpAddressLeaseTime

public class IpAddressLeaseTime
extends IntOption

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.

Version:
$Rev: 638228 $, $Date: 2008-03-18 07:12:41 +0100 (Di, 18 M??r 2008) $
Author:
Apache Directory Project

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

IpAddressLeaseTime

public IpAddressLeaseTime()

IpAddressLeaseTime

public IpAddressLeaseTime(long leaseTime)
Method Detail

getTag

public byte getTag()
Description copied from class: DhcpOption
Get the option's code tag.

Specified by:
getTag in class DhcpOption
Returns:
byte


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.