Interface DittoWotIntegration
- All Superinterfaces:
org.apache.pekko.actor.Extension
public interface DittoWotIntegration
extends org.apache.pekko.actor.Extension
Extension providing access to all Ditto WoT integration capabilities.
- Since:
- 3.6.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic DittoWotIntegrationget(org.apache.pekko.actor.ActorSystem system) Get theDittoWotIntegrationfor an actor system.
-
Method Details
-
getWotConfig
WotConfig getWotConfig()- Returns:
- the applied WoT configuration.
-
getWotThingModelFetcher
WotThingModelFetcher getWotThingModelFetcher()- Returns:
- the WoT ThingModel fetcher used to download/fetch TMs from URLs.
-
getWotThingModelResolver
WotThingModelResolver getWotThingModelResolver()- Returns:
- the WoT ThingModel resolver which fetches ThingModels and in addition resolves extensions and reference to other ThingModels.
-
getWotThingDescriptionGenerator
WotThingDescriptionGenerator getWotThingDescriptionGenerator()- Returns:
- the WoT ThingDescription generator which generates ThingDescriptions based on ThingModels.
-
getWotThingModelExtensionResolver
WotThingModelExtensionResolver getWotThingModelExtensionResolver()- Returns:
- the WoT ThingModel extension and reference resolver used to resolve
tm:extendsandtm:refconstructs in ThingModels.
-
getWotThingSkeletonGenerator
WotThingSkeletonGenerator getWotThingSkeletonGenerator()- Returns:
- the WoT Thing skeleton generator which generates a JSON skeleton when creating new things or features based on a ThingModel, adhering to default values of the model.
-
getWotThingModelValidator
WotThingModelValidator getWotThingModelValidator()- Returns:
- the WoT ThingModel validator which can validate and enforce Ditto Thing payloads based on the defined ThingModel and its JsonSchema for properties, actions, events.
-
get
Get theDittoWotIntegrationfor an actor system.- Parameters:
system- the actor system.- Returns:
- the
DittoWotIntegrationextension.
-