|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.dhcp.options.OptionsField
public class OptionsField
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 | |
---|---|
OptionsField()
|
Method Summary | |
---|---|
void |
add(DhcpOption option)
|
void |
clear()
|
DhcpOption |
get(java.lang.Class optionClass)
Return the (first) DHCP option matching a given option class or null of the option isn't set. |
DhcpOption |
get(int tag)
Return the (first) DHCP option matching a given tag or null
of the option isn't set. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
void |
merge(OptionsField options)
Merge the options from the given options field into my options. |
void |
remove(java.lang.Class c)
Remove instances of the given option class. |
void |
remove(int tag)
Remove options matching the given tag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionsField()
Method Detail |
---|
public void add(DhcpOption option)
public boolean isEmpty()
public java.util.Iterator iterator()
public DhcpOption get(java.lang.Class optionClass)
null
of the option isn't set.
optionClass
- public DhcpOption get(int tag)
null
of the option isn't set.
tag
- public void merge(OptionsField options)
options
- public void remove(java.lang.Class c)
c
- public void remove(int tag)
tag
- public void clear()
Map.clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |