]> git.basschouten.com Git - openhab-addons.git/blob
258f94466a97f0d0eb2bcb4193d3c384db44a112
[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     public int delay = 0;
33
34     public String username = "";
35     public String password = "";
36
37     public HttpAuthMode authMode = HttpAuthMode.BASIC;
38     public HttpMethod commandMethod = HttpMethod.GET;
39     public int bufferSize = 2048;
40
41     public @Nullable String encoding = null;
42     public @Nullable String contentType = null;
43
44     public boolean ignoreSSLErrors = false;
45
46     public List<String> headers = Collections.emptyList();
47 }