Core API 7.13

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

Method Summary
 byte[] getBytes()
           
 byte getCode()
           
 int getInt()
           
 java.lang.String getIpAddress()
           
 java.lang.String[] getIpAddresses()
           
 int getLength()
           
 java.lang.String getString()
           
 DhcpOptions getSubOptions()
           
 java.lang.String toString()
           
 

Method Detail

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

Core API 7.13