java.lang.Object
org.minidns.edns.EdnsOption
org.minidns.edns.Nsid
EDNS NSID (Name Server Identifier) option.
Field Summary
FieldsFields inherited from class EdnsOption
optionCode, optionData, optionLengthModifier and TypeFieldDescriptionfinal intThe EDNS option code.protected final byte[]The raw option data.final intThe length of the option data.Constructor Summary
Method Summary
Public MethodsModifier and TypeMethodDescriptionprotected CharSequenceReturns the terminal output representation of this EDNS option.Returns the option code for this EDNS option.protected CharSequenceReturns the string representation of this EDNS option.Methods inherited from class EdnsOption
asTerminalOutput, parse, toString, writeToDosModifier and TypeMethodDescriptionfinal StringReturns the terminal output representation of this EDNS option.static EdnsOptionparse(int intOptionCode, byte[] optionData) Parses an EDNS option from the specified option code and data.final StringtoString()Returns the cached string form, computing it fromEdnsOption.toStringInternal()on first use.final voidWrites this EDNS option to the specified data output stream.
Field Details
REQUEST
NSID request instance with empty payload.
Constructor Details
Nsid
private Nsid()Private constructor for the REQUEST instance.Nsid
public Nsid(byte[] payload) Creates a new NSID option with the specified payload.- Parameters:
payload- the NSID payload data
Method Details
getOptionCode
Description copied from class:EdnsOptionReturns the option code for this EDNS option.- Specified by:
getOptionCodein classEdnsOption- Returns:
- the option code
toStringInternal
Description copied from class:EdnsOptionReturns the string representation of this EDNS option.- Specified by:
toStringInternalin classEdnsOption- Returns:
- the string representation
asTerminalOutputInternal
Description copied from class:EdnsOptionReturns the terminal output representation of this EDNS option.- Specified by:
asTerminalOutputInternalin classEdnsOption- Returns:
- the terminal output representation