Package model
Class HttpOptions
java.lang.Object
model.HttpOptions
- All Implemented Interfaces:
MeasurementOption
Represents the measurement options used when performing a Http type of measurement. This class
implements the
MeasurementOption interface with parameters required for the http
queries.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a builder for Http Options. -
Constructor Summary
ConstructorsConstructorDescriptionHttpOptions(HttpOptions.HttpOptionsBuilder httpOptionsBuilder) Constructor which allows creation ofHttpOptionsusingHttpOptions.HttpOptionsBuilder. -
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
-
HttpOptions
Constructor which allows creation ofHttpOptionsusingHttpOptions.HttpOptionsBuilder.- Parameters:
httpOptionsBuilder-HttpOptions.HttpOptionsBuilder
-
-
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.
-