2 * Copyright (c) 2010-2020 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.Collections;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20 import org.eclipse.jetty.http.HttpMethod;
23 * The {@link HttpThingConfig} class contains fields mapping thing configuration parameters.
25 * @author Jan N. Klug - Initial contribution
28 public class HttpThingConfig {
29 public String baseURL = "";
30 public int refresh = 30;
31 public int timeout = 3000;
34 public String username = "";
35 public String password = "";
37 public HttpAuthMode authMode = HttpAuthMode.BASIC;
38 public HttpMethod commandMethod = HttpMethod.GET;
39 public int bufferSize = 2048;
41 public @Nullable String encoding = null;
42 public @Nullable String contentType = null;
44 public boolean ignoreSSLErrors = false;
46 public List<String> headers = Collections.emptyList();