Class ChatbotsConfigurationProperties

  • All Implemented Interfaces:
    ChatbotsConfiguration, io.micronaut.core.util.Toggleable

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

      • DEFAULT_FOLDER

        public static final java.lang.String DEFAULT_FOLDER
        The default BOT commands folder.
        See Also:
        Constant Field Values
      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        The default enable value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChatbotsConfigurationProperties

        public ChatbotsConfigurationProperties()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        enabled getter.
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
        Returns:
        boolean flag indicating whether the chatbots features are enabled.
      • setEnabled

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

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

        @Nullable
        public java.util.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
                                                       java.util.List<FileExtension> possibleStaticCommandExtensions)
        Possible static command file extensions. Default values MARKDOWN HTML TXT
        Parameters:
        possibleStaticCommandExtensions - Possible static command file extensions.