2 * Copyright (c) 2010-2021 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.network.internal;
16 * The {@link SpeedTestConfiguration} is the class used to match the
17 * thing configuration.
19 * @author Gaƫl L'hopital - Initial contribution
21 public class SpeedTestConfiguration {
22 public Integer refreshInterval = 20;
23 public Integer initialDelay = 5;
24 public Integer uploadSize = 1000000;
25 public Integer maxTimeout = 3;
27 private String fileName;
29 public String getUploadURL() {
30 return url + (url.endsWith("/") ? "" : "/");
33 public String getDownloadURL() {
34 return getUploadURL() + fileName;