Class DefaultWotConfig

java.lang.Object
org.eclipse.ditto.wot.integration.config.DefaultWotConfig
All Implemented Interfaces:
WotConfig

@Immutable public final class DefaultWotConfig extends Object implements WotConfig
This class is the default implementation of the WoT (Web of Things) config.
Since:
2.4.0
  • Method Details

    • of

      public static DefaultWotConfig of(com.typesafe.config.Config config)
      Returns an instance of the thing config based on the settings of the specified Config.
      Parameters:
      config - is supposed to provide the settings of the thing config at "wot".
      Returns:
      the instance.
      Throws:
      org.eclipse.ditto.internal.utils.config.DittoConfigError - if config is invalid.
    • getHttpProxyConfig

      public org.eclipse.ditto.base.service.config.http.HttpProxyConfig getHttpProxyConfig()
      Description copied from interface: WotConfig
      Returns configuration settings for the HTTP proxy to use for downloading WoT Thing Models.
      Specified by:
      getHttpProxyConfig in interface WotConfig
      Returns:
      configuration settings for the HTTP proxy.
    • getCacheConfig

      public CacheConfig getCacheConfig()
      Description copied from interface: WotConfig
      Returns the cache configuration to apply for caching downloaded WoT Thing Models.
      Specified by:
      getCacheConfig in interface WotConfig
      Returns:
      the cache configuration to apply.
    • getToThingDescriptionConfig

      public ToThingDescriptionConfig getToThingDescriptionConfig()
      Description copied from interface: WotConfig
      Returns configuration settings for WoT (Web of Things) integration regarding the Thing Description transformation from Thing Models.
      Specified by:
      getToThingDescriptionConfig in interface WotConfig
      Returns:
      configuration regarding the Thing Description transformation from Thing Models.
    • getCreationConfig

      public TmBasedCreationConfig getCreationConfig()
      Description copied from interface: WotConfig
      Returns configuration for WoT TM (ThingModel) based creation of Things and Features.
      Specified by:
      getCreationConfig in interface WotConfig
      Returns:
      configuration for WoT TM (ThingModel) based creation of Things and Features.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object