Class ControllerConfigurationProperties

java.lang.Object
io.micronaut.chatbots.http.ControllerConfigurationProperties
All Implemented Interfaces:
ControllerConfiguration, io.micronaut.core.util.Toggleable
Direct Known Subclasses:
BasecampControllerConfiguration, TelegramControllerConfiguration

public class ControllerConfigurationProperties extends Object implements ControllerConfiguration
Default implementation of ControllerConfiguration.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

    • DEFAULT_ENABLED

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

    • ControllerConfigurationProperties

      public ControllerConfigurationProperties(String path)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      true if you want to enable the Controller.
    • getPath

      @NonNull public @NonNull String getPath()
      Specified by:
      getPath in interface ControllerConfiguration
      Returns:
      the path where the controller is enabled.
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables the controller. Default value true
      Parameters:
      enabled - True if it is enabled
    • setPath

      public void setPath(String path)
      Path to the controller.
      Parameters:
      path - The path