Package model
Class DnsOptions
java.lang.Object
model.DnsOptions
- All Implemented Interfaces:
MeasurementOption
Represents the DNS-specific options used when performing a DNS type of measurement. This class
implements the
MeasurementOption interface with parameters required for the DNS queries.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a builder for Dns Options. -
Constructor Summary
ConstructorsConstructorDescriptionDnsOptions(DnsOptions.DnsOptionsBuilder dnsOptionsBuilder) Constructor which allows creation ofDnsOptionsusingDnsOptions.DnsOptionsBuilder. -
Method Summary
Modifier and TypeMethodDescriptiontoJson()Converts the measurement option to its JSON string representation.byte[]Converts the measurement option to a JSON byte array.
-
Constructor Details
-
DnsOptions
Constructor which allows creation ofDnsOptionsusingDnsOptions.DnsOptionsBuilder.- Parameters:
dnsOptionsBuilder-DnsOptions.DnsOptionsBuilder
-
-
Method Details
-
toJson
Description copied from interface:MeasurementOptionConverts the measurement option to its JSON string representation.- Specified by:
toJsonin interfaceMeasurementOption- Returns:
- a JSON string representing the measurement option.
-
toJsonBytes
public byte[] toJsonBytes()Description copied from interface:MeasurementOptionConverts the measurement option to a JSON byte array.- Specified by:
toJsonBytesin interfaceMeasurementOption- Returns:
- a byte array containing the JSON representation of the measurement option.
-