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
public class ControllerConfigurationProperties extends java.lang.Object implements ControllerConfiguration
Default implementation ofControllerConfiguration
.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ENABLED
The default enable value.
-
Constructor Summary
Constructors Constructor Description ControllerConfigurationProperties(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPath()
boolean
isEnabled()
void
setEnabled(boolean enabled)
Enables the controller.void
setPath(java.lang.String path)
Path to the controller.
-
-
-
Field Detail
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enable value.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- true if you want to enable the Controller.
-
getPath
@NonNull public java.lang.String 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
public void setPath(java.lang.String path)
Path to the controller.- Parameters:
path
- The path
-
-