Class BasecampControllerConfiguration
- java.lang.Object
-
- io.micronaut.chatbots.http.ControllerConfigurationProperties
-
- io.micronaut.chatbots.basecamp.http.BasecampControllerConfiguration
-
- All Implemented Interfaces:
ControllerConfiguration,io.micronaut.core.util.Toggleable
@Requires(property="micronaut.chatbots.basecamp.endpoint.enabled", notEquals="false", defaultValue="true") @ConfigurationProperties("micronaut.chatbots.basecamp.endpoint") public class BasecampControllerConfiguration extends ControllerConfigurationPropertiesBasecampControllerconfiguration.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_PATHThe default path.static java.lang.StringPREFIXBasecamp Controller configuration prefix.-
Fields inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
DEFAULT_ENABLED
-
-
Constructor Summary
Constructors Constructor Description BasecampControllerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetEnabled(boolean enabled)Enables the controller.voidsetPath(java.lang.String path)Path to the controller.-
Methods inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
getPath, isEnabled
-
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Basecamp Controller configuration prefix.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default path.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
Enables the controller. Default value true.- Overrides:
setEnabledin classControllerConfigurationProperties- Parameters:
enabled- True if it is enabled
-
setPath
public void setPath(java.lang.String path)
Path to the controller. Default value "/basecamp".- Overrides:
setPathin classControllerConfigurationProperties- Parameters:
path- The path
-
-