2 * Copyright (c) 2010-2022 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.bmwconnecteddrive.internal.utils;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link HTTPConstants} class contains fields mapping thing configuration parameters.
20 * @author Bernd Weymann - Initial contribution
23 public class HTTPConstants {
24 public static final int HTTP_TIMEOUT_SEC = 10;
26 public static final String AUTH_HTTP_CLIENT_NAME = "AuthHttpClient";
27 public static final String CONTENT_TYPE_URL_ENCODED = "application/x-www-form-urlencoded";
28 public static final String CONTENT_TYPE_JSON_ENCODED = "application/json";
29 public static final String KEEP_ALIVE = "Keep-Alive";
30 public static final String CLIENT_ID = "client_id";
31 public static final String RESPONSE_TYPE = "response_type";
32 public static final String TOKEN = "token";
33 public static final String CODE = "code";
34 public static final String REDIRECT_URI = "redirect_uri";
35 public static final String AUTHORIZATION = "authorization";
36 public static final String GRANT_TYPE = "grant_type";
37 public static final String SCOPE = "scope";
38 public static final String CREDENTIALS = "Credentials";
39 public static final String USERNAME = "username";
40 public static final String PASSWORD = "password";
41 public static final String CONTENT_LENGTH = "Content-Length";
43 public static final String ACCESS_TOKEN = "access_token";
44 public static final String TOKEN_TYPE = "token_type";
45 public static final String EXPIRES_IN = "expires_in";
46 public static final String CHUNKED = "chunked";