2 * Copyright (c) 2010-2023 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.http.internal.config;
15 import java.util.ArrayList;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.eclipse.jetty.http.HttpMethod;
22 * The {@link HttpThingConfig} class contains fields mapping thing configuration parameters.
24 * @author Jan N. Klug - Initial contribution
27 public class HttpThingConfig {
28 public String baseURL = "";
29 public int refresh = 30;
30 public int timeout = 3000;
33 public String username = "";
34 public String password = "";
36 public HttpAuthMode authMode = HttpAuthMode.BASIC;
37 public HttpMethod stateMethod = HttpMethod.GET;
39 public HttpMethod commandMethod = HttpMethod.GET;
40 public int bufferSize = 2048;
42 public @Nullable String encoding = null;
43 public @Nullable String contentType = null;
45 public boolean ignoreSSLErrors = false;
47 // ArrayList is required as implementation because list may be modified later
48 public ArrayList<String> headers = new ArrayList<>();