org.eclipse.ditto.wot.api.config.WotConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ditto-wot-api Show documentation
Show all versions of ditto-wot-api Show documentation
Eclipse Ditto is a framework for creating and managing digital twins in the IoT.
The newest version!
/*
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.ditto.wot.api.config;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import org.eclipse.ditto.internal.utils.cache.config.CacheConfig;
import org.eclipse.ditto.internal.utils.config.http.HttpProxyBaseConfig;
import org.eclipse.ditto.wot.validation.ValidationContext;
import org.eclipse.ditto.wot.validation.config.TmValidationConfig;
/**
* Provides configuration settings for WoT (Web of Things) integration.
*
* @since 2.4.0
*/
@Immutable
public interface WotConfig {
/**
* Returns configuration settings for the HTTP proxy to use for downloading WoT Thing Models.
*
* @return configuration settings for the HTTP proxy.
*/
HttpProxyBaseConfig getHttpProxyConfig();
/**
* Returns the cache configuration to apply for caching downloaded WoT Thing Models.
*
* @return the cache configuration to apply.
*/
CacheConfig getCacheConfig();
/**
* Returns configuration settings for WoT (Web of Things) integration regarding the Thing Description transformation
* from Thing Models.
*
* @return configuration regarding the Thing Description transformation from Thing Models.
*/
ToThingDescriptionConfig getToThingDescriptionConfig();
/**
* Returns configuration for WoT TM (ThingModel) based creation of Things and Features.
*
* @return configuration for WoT TM (ThingModel) based creation of Things and Features.
*/
TmBasedCreationConfig getCreationConfig();
/**
* @return configuration for WoT (Web of Things) integration regarding the validation of Things and Features
* based on their WoT ThingModels.
* @since 3.6.0
*/
TmValidationConfig getValidationConfig();
/**
* @param context the ValidationContext to evaluate for determining config dynamically
* @return configuration for WoT (Web of Things) integration regarding the validation of Things and Features
* based on their WoT ThingModels.
* @since 3.6.0
*/
TmValidationConfig getValidationConfig(@Nullable ValidationContext context);
}