net.juniper.smgt.sae.portal
Interface DhcpOption
public interface DhcpOption
Encapsulation of a single DHCP option.
See RFC 2131 and RFC 2132 for details about DHCP options.
- Since:
- 4.0
getCode
byte getCode()
- Returns:
- DHCP option code
- Since:
- 4.0
getLength
int getLength()
- Returns:
- Length of value
- Since:
- 4.0
getBytes
byte[] getBytes()
- Returns:
- value of the option as array of bytes.
- Since:
- 4.0
getString
java.lang.String getString()
- Returns:
- value interpreted as UTF-8 encoded string
- Since:
- 4.0
getSubOptions
DhcpOptions getSubOptions()
- Returns:
- value interpreted as TLV encoded suboptions.
- Since:
- 4.0
getInt
int getInt()
- Returns:
- value interpreted as 32 bit integer
- Since:
- 4.0
getIpAddress
java.lang.String getIpAddress()
- Returns:
- value interpreted as IP address. The IP address
is formatted dotted-decimal, e.g. "192.168.1.1"
- Since:
- 4.0
getIpAddresses
java.lang.String[] getIpAddresses()
- Returns:
- value interpreted as multiple IP addresses. The IP
addresses are formatted dotted-decimal, e.g. "192.168.1.1"
- Since:
- 4.0
toString
java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- formated string corresponding to a DHCP option,
according to its definition.
- Since:
- callisto