Package io.micronaut.chatbots.http
Class ControllerConfigurationProperties
java.lang.Object
io.micronaut.chatbots.http.ControllerConfigurationProperties
- All Implemented Interfaces:
ControllerConfiguration
,io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
BasecampControllerConfiguration
,TelegramControllerConfiguration
Default implementation of
ControllerConfiguration
.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
ControllerConfigurationProperties
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the Controller.
-
getPath
- Specified by:
getPath
in interfaceControllerConfiguration
- 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
Path to the controller.- Parameters:
path
- The path
-