class SrcIpExtractorDefault implements FieldExtractor<Ip> {

  @Override
  public Ip getValue(PacketHeaderConstraints phc, @Nullable Location srcLocation) {
    // Extract source IP from header constraints,
    String headerSrcIp = phc.getSrcIps();

    return headerSrcIp != null
        ? _helper.inferSrcIpFromHeaderSrcIp(headerSrcIp)
        : srcLocation != null
            ? _helper.inferSrcIpFromSourceLocation(srcLocation)
            : DEFAULT_IP_ADDRESS;
  }

  public  SrcIpExtractorDefault(IpFieldExtractorContext helper);

}