|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.dhcp.messages.DhcpMessage
public class DhcpMessage
A DHCP (RFC 2131) message. Field descriptions contain the oroginal RFC field names in brackets.
Field Summary | |
---|---|
static int |
FLAG_BROADCAST
Flag value: request broadcast answer. |
static byte |
OP_BOOTREPLY
Operation constant: boot reply (server to client). |
static byte |
OP_BOOTREQUEST
Operation constant: boot request (client to server). |
Constructor Summary | |
---|---|
DhcpMessage()
Create a default dhcp message. |
|
DhcpMessage(MessageType messageType,
byte op,
HardwareAddress hardwareAddress,
short hops,
int transactionId,
int seconds,
short flags,
java.net.InetAddress currentClientAddress,
java.net.InetAddress assignedClientAddress,
java.net.InetAddress nextServerAddress,
java.net.InetAddress relayAgentAddress,
java.lang.String serverHostname,
java.lang.String bootFileName,
OptionsField options)
Create a DHCP message based on the supplied values. |
Method Summary | |
---|---|
java.net.InetAddress |
getAssignedClientAddress()
|
java.lang.String |
getBootFileName()
|
java.net.InetAddress |
getCurrentClientAddress()
|
short |
getFlags()
|
HardwareAddress |
getHardwareAddress()
|
short |
getHopCount()
|
MessageType |
getMessageType()
|
java.net.InetAddress |
getNextServerAddress()
|
byte |
getOp()
|
OptionsField |
getOptions()
|
java.net.InetAddress |
getRelayAgentAddress()
|
int |
getSeconds()
|
java.lang.String |
getServerHostname()
|
int |
getTransactionId()
|
void |
setAssignedClientAddress(java.net.InetAddress assignedClientAddress)
|
void |
setBootFileName(java.lang.String bootFileName)
|
void |
setCurrentClientAddress(java.net.InetAddress currentClientAddress)
|
void |
setFlags(short flags)
|
void |
setHardwareAddress(HardwareAddress hardwareAddress)
|
void |
setHopCount(short hopCount)
|
void |
setMessageType(MessageType messageType)
|
void |
setNextServerAddress(java.net.InetAddress nextServerAddress)
|
void |
setOp(byte op)
|
void |
setOptions(OptionsField options)
|
void |
setRelayAgentAddress(java.net.InetAddress relayAgentAddress)
|
void |
setSeconds(int seconds)
|
void |
setServerHostname(java.lang.String serverHostname)
|
void |
setTransactionId(int transactionId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FLAG_BROADCAST
public static final byte OP_BOOTREQUEST
op
,
Constant Field Valuespublic static final byte OP_BOOTREPLY
op
,
Constant Field ValuesConstructor Detail |
---|
public DhcpMessage()
public DhcpMessage(MessageType messageType, byte op, HardwareAddress hardwareAddress, short hops, int transactionId, int seconds, short flags, java.net.InetAddress currentClientAddress, java.net.InetAddress assignedClientAddress, java.net.InetAddress nextServerAddress, java.net.InetAddress relayAgentAddress, java.lang.String serverHostname, java.lang.String bootFileName, OptionsField options)
messageType
- op
- hardwareAddress
- hops
- transactionId
- seconds
- flags
- currentClientAddress
- assignedClientAddress
- nextServerAddress
- relayAgentAddress
- serverHostname
- bootFileName
- options
- Method Detail |
---|
public java.net.InetAddress getAssignedClientAddress()
public java.lang.String getBootFileName()
public java.net.InetAddress getCurrentClientAddress()
public short getFlags()
public short getHopCount()
public MessageType getMessageType()
public java.net.InetAddress getNextServerAddress()
public OptionsField getOptions()
public java.net.InetAddress getRelayAgentAddress()
public int getSeconds()
public java.lang.String getServerHostname()
public int getTransactionId()
public void setAssignedClientAddress(java.net.InetAddress assignedClientAddress)
public void setBootFileName(java.lang.String bootFileName)
public void setCurrentClientAddress(java.net.InetAddress currentClientAddress)
public void setFlags(short flags)
public void setHopCount(short hopCount)
public void setMessageType(MessageType messageType)
public void setNextServerAddress(java.net.InetAddress nextServerAddress)
public void setOptions(OptionsField options)
public void setRelayAgentAddress(java.net.InetAddress relayAgentAddress)
public void setSeconds(int seconds)
public void setServerHostname(java.lang.String serverHostname)
public void setTransactionId(int transactionId)
public byte getOp()
public void setOp(byte op)
public HardwareAddress getHardwareAddress()
public void setHardwareAddress(HardwareAddress hardwareAddress)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |