|
||||||||||
| 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.dhcp.DhcpMessageType
public class DhcpMessageType
This option is used to convey the type of the DHCP message. The code for this option is 53, and its length is 1. Legal values for this option are: Value Message Type ----- ------------ 1 DHCPDISCOVER 2 DHCPOFFER 3 DHCPREQUEST 4 DHCPDECLINE 5 DHCPACK 6 DHCPNAK 7 DHCPRELEASE 8 DHCPINFORM
| Constructor Summary | |
|---|---|
DhcpMessageType()
|
|
DhcpMessageType(MessageType type)
|
|
| Method Summary | |
|---|---|
byte[] |
getData()
Get the data (wire format) into a byte array. |
byte |
getTag()
Get the option's code tag. |
MessageType |
getType()
|
void |
setData(byte[] messageType)
Set the data (wire format) from a byte array. |
| 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 DhcpMessageType()
public DhcpMessageType(MessageType type)
| Method Detail |
|---|
public byte getTag()
DhcpOption
getTag in class DhcpOptionpublic void setData(byte[] messageType)
DhcpOption
setData in class DhcpOptionpublic byte[] getData()
DhcpOptionDhcpOption.setData(byte[]).
getData in class DhcpOptionpublic MessageType getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||