Package model

Class MeasurementTarget

java.lang.Object
model.MeasurementTarget

public class MeasurementTarget extends Object
This class represents target of the measurement.

A publicly reachable measurement target. Typically a hostname, an IPv4 address, or IPv6 address, depending on the measurement type.

Note: Support for IPv6 targets is currently considered experimental.

  • Constructor Details

    • MeasurementTarget

      public MeasurementTarget(TargetType ttype, String text) throws PayloadException
      Constructor to safely creates instance of the class, pre-emptively checks if target is valid.
      Parameters:
      ttype - TargetType type of the target Hostname, IPv4, IPv6
      text - String target value
      Throws:
      PayloadException - when type does not match the given value