Class ChatbotsConfigurationProperties

java.lang.Object
io.micronaut.chatbots.core.ChatbotsConfigurationProperties
All Implemented Interfaces:
ChatbotsConfiguration, io.micronaut.core.util.Toggleable

@ConfigurationProperties("micronaut.chatbots") public class ChatbotsConfigurationProperties extends Object implements ChatbotsConfiguration
ConfigurationProperties implementation of ChatbotsConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

    • DEFAULT_FOLDER

      public static final String DEFAULT_FOLDER
      The default BOT commands folder.
      See Also:
    • DEFAULT_ENABLED

      public static final boolean DEFAULT_ENABLED
      The default enable value.
      See Also:
  • Constructor Details

    • ChatbotsConfigurationProperties

      public ChatbotsConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether chatbots is enabled. Default value (true).
      Parameters:
      enabled - True if view rendering is enabled
    • getFolder

      @NonNull public @NonNull String getFolder()
      Specified by:
      getFolder in interface ChatbotsConfiguration
      Returns:
      The resources' folder where static commands should be searched for.
    • setFolder

      public void setFolder(String folder)
      The folder to look for bot commands.
      Parameters:
      folder - The folder
    • getPossibleStaticCommandExtensions

      @Nullable public @Nullable List<FileExtension> getPossibleStaticCommandExtensions()
      Specified by:
      getPossibleStaticCommandExtensions in interface ChatbotsConfiguration
      Returns:
      the command file extensions candidates for static resource. For a command such as /help and extensions HTML and MARKDOWN, possible files are help.md, help.markdown, and help.html
    • setPossibleStaticCommandExtensions

      public void setPossibleStaticCommandExtensions(@Nullable @Nullable List<FileExtension> possibleStaticCommandExtensions)
      Possible static command file extensions. Default values MARKDOWN, HTML, TXT
      Parameters:
      possibleStaticCommandExtensions - Possible static command file extensions.