2 * Copyright (c) 2010-2023 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.mybmw.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 CONTENT_TYPE_URL_ENCODED = "application/x-www-form-urlencoded";
27 public static final String CONTENT_TYPE_JSON_ENCODED = "application/json";
28 public static final String KEEP_ALIVE = "Keep-Alive";
29 public static final String CLIENT_ID = "client_id";
30 public static final String RESPONSE_TYPE = "response_type";
31 public static final String TOKEN = "token";
32 public static final String CODE = "code";
33 public static final String CODE_VERIFIER = "code_verifier";
34 public static final String STATE = "state";
35 public static final String NONCE = "nonce";
36 public static final String REDIRECT_URI = "redirect_uri";
37 public static final String AUTHORIZATION = "authorization";
38 public static final String GRANT_TYPE = "grant_type";
39 public static final String SCOPE = "scope";
40 public static final String CREDENTIALS = "Credentials";
41 public static final String USERNAME = "username";
42 public static final String PASSWORD = "password";
43 public static final String CONTENT_LENGTH = "Content-Length";
44 public static final String CODE_CHALLENGE = "code_challenge";
45 public static final String CODE_CHALLENGE_METHOD = "code_challenge_method";
46 public static final String ACCESS_TOKEN = "access_token";
47 public static final String TOKEN_TYPE = "token_type";
48 public static final String EXPIRES_IN = "expires_in";
49 public static final String CHUNKED = "chunked";
51 public static final String ACP_SUBSCRIPTION_KEY = "ocp-apim-subscription-key";
52 public static final String X_USER_AGENT = "x-user-agent";