Class DHCPOptions
- java.lang.Object
-
- org.opendaylight.netvirt.dhcpservice.api.DHCPOptions
-
public class DHCPOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DHCPOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsOption(byte code)
void
deserialize(byte[] serializedOptions)
byte
getOptionByte(byte code)
@org.eclipse.jdt.annotation.Nullable byte[]
getOptionBytes(byte code)
@Nullable java.net.InetAddress
getOptionInetAddr(byte code)
int
getOptionInt(byte code)
short
getOptionShort(byte code)
@Nullable java.lang.String
getOptionStrAddr(byte code)
byte[]
serialize()
void
setOption(byte code, byte[] opt)
void
setOptionByte(byte code, byte opt)
void
setOptionInetAddr(byte code, java.net.InetAddress opt)
void
setOptionInt(byte code, int opt)
void
setOptionShort(byte code, short opt)
void
setOptionStrAddr(byte code, java.lang.String opt)
void
setOptionStrAddrs(byte code, java.util.List<java.lang.String> addrs)
void
setOptionString(byte code, java.lang.String str)
java.lang.String
toString()
org.opendaylight.netvirt.dhcpservice.api.DHCPOptions.DhcpOption
unsetOption(byte code)
-
-
-
Method Detail
-
setOption
public void setOption(byte code, byte[] opt)
-
getOptionBytes
public @org.eclipse.jdt.annotation.Nullable byte[] getOptionBytes(byte code)
-
setOptionByte
public void setOptionByte(byte code, byte opt)
-
getOptionByte
public byte getOptionByte(byte code)
-
setOptionShort
public void setOptionShort(byte code, short opt)
-
getOptionShort
public short getOptionShort(byte code)
-
setOptionInt
public void setOptionInt(byte code, int opt)
-
getOptionInt
public int getOptionInt(byte code)
-
setOptionInetAddr
public void setOptionInetAddr(byte code, java.net.InetAddress opt)
-
getOptionInetAddr
public @Nullable java.net.InetAddress getOptionInetAddr(byte code)
-
setOptionStrAddr
public void setOptionStrAddr(byte code, java.lang.String opt) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
getOptionStrAddr
public @Nullable java.lang.String getOptionStrAddr(byte code)
-
setOptionStrAddrs
public void setOptionStrAddrs(byte code, java.util.List<java.lang.String> addrs) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
setOptionString
public void setOptionString(byte code, java.lang.String str)
-
serialize
public byte[] serialize()
-
deserialize
public void deserialize(byte[] serializedOptions)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
containsOption
public boolean containsOption(byte code)
-
unsetOption
public org.opendaylight.netvirt.dhcpservice.api.DHCPOptions.DhcpOption unsetOption(byte code)
-
-