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 ControllerConfigurationProperties
BasecampController
configuration.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The default path.static final String
Basecamp Controller configuration prefix.Fields inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
DEFAULT_ENABLED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnabled
(boolean enabled) Enables the controller.void
Path to the controller.Methods inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
getPath, isEnabled
-
Field Details
-
PREFIX
Basecamp Controller configuration prefix.- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
-
Constructor Details
-
BasecampControllerConfiguration
public BasecampControllerConfiguration()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) Enables the controller. Default value true.- Overrides:
setEnabled
in classControllerConfigurationProperties
- Parameters:
enabled
- True if it is enabled
-
setPath
Path to the controller. Default value "/basecamp".- Overrides:
setPath
in classControllerConfigurationProperties
- Parameters:
path
- The path
-