|
||||||||||
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
public abstract class DhcpOption
The Dynamic Host Configuration Protocol (DHCP) provides a framework for passing configuration information to hosts on a TCP/IP network. Configuration parameters and other control information are carried in tagged data items that are stored in the 'options' field of the DHCP message. The data items themselves are also called "options."
Constructor Summary | |
---|---|
DhcpOption()
|
Method Summary | |
---|---|
static java.lang.Class |
getClassByTag(int tag)
|
byte[] |
getData()
Get the data (wire format) into a byte array. |
abstract byte |
getTag()
Get the option's code tag. |
static int |
getTagByClass(java.lang.Class c)
|
void |
setData(byte[] data)
Set the data (wire format) from a byte array. |
void |
writeTo(java.nio.ByteBuffer out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DhcpOption()
Method Detail |
---|
public static java.lang.Class getClassByTag(int tag)
public static int getTagByClass(java.lang.Class c)
public abstract byte getTag()
public void setData(byte[] data)
data
- public byte[] getData()
setData(byte[])
.
public final void writeTo(java.nio.ByteBuffer out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |