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
public byte getCode()
- Returns:
- DHCP option code
- Since:
- 4.0
getLength
public int getLength()
- Returns:
- Length of value
- Since:
- 4.0
getBytes
public byte[] getBytes()
- Returns:
- value of the option as array of bytes.
- Since:
- 4.0
getString
public String getString()
- Returns:
- value interpreted as UTF-8 encoded string
- Since:
- 4.0
getSubOptions
public DhcpOptions getSubOptions()
- Returns:
- value interpreted as TLV encoded suboptions.
- Since:
- 4.0
getInt
public int getInt()
- Returns:
- value interpreted as 32 bit integer
- Since:
- 4.0
getIpAddress
public 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
public 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