]> git.basschouten.com Git - openhab-addons.git/blob
9f03d5c62bbd4be112b3bf0cc77c8ebf519b7189
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.ArrayList;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.eclipse.jetty.http.HttpMethod;
20
21 /**
22  * The {@link HttpThingConfig} class contains fields mapping thing configuration parameters.
23  *
24  * @author Jan N. Klug - Initial contribution
25  */
26 @NonNullByDefault
27 public class HttpThingConfig {
28     public String baseURL = "";
29     public int refresh = 30;
30     public int timeout = 3000;
31     public int delay = 0;
32
33     public String username = "";
34     public String password = "";
35
36     public HttpAuthMode authMode = HttpAuthMode.BASIC;
37     public HttpMethod stateMethod = HttpMethod.GET;
38
39     public HttpMethod commandMethod = HttpMethod.GET;
40     public int bufferSize = 2048;
41
42     public @Nullable String encoding = null;
43     public @Nullable String contentType = null;
44
45     public boolean ignoreSSLErrors = false;
46
47     // ArrayList is required as implementation because list may be modified later
48     public ArrayList<String> headers = new ArrayList<>();
49 }