Interface ToThingDescriptionConfig
@Immutable
public interface ToThingDescriptionConfig
Provides configuration settings for WoT (Web of Things) integration regarding the Thing Description transformation
from Thing Models.
- Since:
- 2.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn enumeration of the known config path expressions and their associated default values forToThingDescriptionConfig. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to add"created"to each TD reflecting the created timestamp of the Thing.booleanReturns whether to add"modified"to each TD reflecting the last modified timestamp of the Thing.Returns the URI prefix of the WoT"base"to inject in generated TDs.org.eclipse.ditto.json.JsonObjectReturns the JSON object template to additionally add to generated WoT TDs, e.g.Returns the map containing placeholder constants to use in order to resolve WoT TM placeholders.
-
Method Details
-
getBasePrefix
String getBasePrefix()Returns the URI prefix of the WoT"base"to inject in generated TDs. Will be prepended to"/api/2/things/<thing:id>.- Returns:
- the URI prefix of the WoT
"base"to inject in generated TDs.
-
getJsonTemplate
org.eclipse.ditto.json.JsonObject getJsonTemplate()Returns the JSON object template to additionally add to generated WoT TDs, e.g. containing additional"securityDefinitions".- Returns:
- the JSON object template to additionally add to generated WoT TDs.
-
getPlaceholders
Returns the map containing placeholder constants to use in order to resolve WoT TM placeholders.- Returns:
- the map containing placeholder constants to use in order to resolve WoT TM placeholders.
-
addCreated
boolean addCreated()Returns whether to add"created"to each TD reflecting the created timestamp of the Thing.- Returns:
- whether to add
"created"to each TD.
-
addModified
boolean addModified()Returns whether to add"modified"to each TD reflecting the last modified timestamp of the Thing.- Returns:
- whether to add
"modified"to each TD.
-