]> git.basschouten.com Git - openhab-addons.git/blob
19aeae84d04eaf9f9ead8ff3cb7a9697ac315387
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.http.internal.config;
14
15 import java.util.Collections;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20 import org.eclipse.jetty.http.HttpMethod;
21
22 /**
23  * The {@link HttpThingConfig} class contains fields mapping thing configuration parameters.
24  *
25  * @author Jan N. Klug - Initial contribution
26  */
27 @NonNullByDefault
28 public class HttpThingConfig {
29     public String baseURL = "";
30     public int refresh = 30;
31     public int timeout = 3000;
32
33     public String username = "";
34     public String password = "";
35
36     public HttpAuthMode authMode = HttpAuthMode.BASIC;
37     public HttpMethod commandMethod = HttpMethod.GET;
38     public int bufferSize = 2048;
39
40     public @Nullable String encoding = null;
41     public @Nullable String contentType = null;
42
43     public boolean ignoreSSLErrors = false;
44
45     public List<String> headers = Collections.emptyList();
46 }