All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.kernel.extensions.servicewebapi.HttpConstants Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * Copyright (c) The openTCS Authors.
 *
 * This program is free software and subject to the MIT license. (For details,
 * see the licensing information (LICENSE.txt) you should have received with
 * this copy of the software.)
 */
package org.opentcs.kernel.extensions.servicewebapi;

/**
 * Defines some HTTP-related constants.
 *
 * @author Stefan Walter (Fraunhofer IML)
 */
public interface HttpConstants {

  /**
   * Name of the header that is expected to contain the API access keys.
   */
  String HEADER_NAME_ACCESS_KEY = "X-Api-Access-Key";
  /**
   * Content type for plain text.
   */
  String CONTENT_TYPE_TEXT_PLAIN_UTF8 = "text/plain; charset=utf-8";
  /**
   * Content type for JSON structures.
   */
  String CONTENT_TYPE_APPLICATION_JSON_UTF8 = "application/json; charset=utf-8";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy