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

org.eclipse.hawkbit.ddi.rest.api.DdiRestConstants Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.eclipse.hawkbit.ddi.rest.api;

/**
 * Constants for the direct device integration rest resources.
 */
public final class DdiRestConstants {

    /**
     * The base URL mapping of the direct device integration rest resources.
     */
    public static final String BASE_V1_REQUEST_MAPPING = "/{tenant}/controller/v1";

    /**
     * Deployment action resources.
     */
    public static final String DEPLOYMENT_BASE_ACTION = "deploymentBase";

    /**
     * Confirmation base resource.
     */
    public static final String CONFIRMATION_BASE = "confirmationBase";

    /**
     * Activate auto-confirm
     */
    public static final String AUTO_CONFIRM_ACTIVATE = "activateAutoConfirm";

    /**
     * Deactivate auto-confirm
     */
    public static final String AUTO_CONFIRM_DEACTIVATE = "deactivateAutoConfirm";

    /**
     * Installed action resources.
     */
    public static final String INSTALLED_BASE_ACTION = "installedBase";

    /**
     * Cancel action resources.
     */
    public static final String CANCEL_ACTION = "cancelAction";

    /**
     * Feedback channel.
     */
    public static final String FEEDBACK = "feedback";

    /**
     * File suffix for MDH hash download (see Linux md5sum).
     */
    public static final String ARTIFACT_MD5_DWNL_SUFFIX = ".MD5SUM";

    /**
     * Config data action resources.
     */
    public static final String CONFIG_DATA_ACTION = "configData";

    /**
     * Default value specifying that no action history to be sent as part of
     * response to deploymentBase
     * {@link DdiRootControllerRestApi#getControllerBasedeploymentAction}.
     * {@link DdiRootControllerRestApi#getConfirmationBaseAction}.
     */
    public static final String NO_ACTION_HISTORY = "0";

    /**
     * Media type for CBOR content. Unfortunately, there is no other constant we
     * can reuse - even the Jackson data converter simply hardcodes this.
     */
    public static final String MEDIA_TYPE_CBOR = "application/cbor";

    private DdiRestConstants() {
        // constant class, private constructor.
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy