]> git.basschouten.com Git - openhab-addons.git/blob
a6cb7941cc97147fd27b7af5ffd68977e0350ef2
[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     public HttpAuthMode authMode = HttpAuthMode.BASIC;
36
37     public HttpMethod commandMethod = HttpMethod.GET;
38
39     public @Nullable String encoding = null;
40     public @Nullable String contentType = null;
41
42     public boolean ignoreSSLErrors = false;
43
44     public List<String> headers = Collections.emptyList();
45 }