Package io.micronaut.rss.jsonfeed.http
Class JsonFeedControllerConfigurationProperties
java.lang.Object
io.micronaut.rss.jsonfeed.http.JsonFeedControllerConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,JsonFeedControllerConfiguration
@ConfigurationProperties("jsonfeed")
public class JsonFeedControllerConfigurationProperties
extends Object
implements JsonFeedControllerConfiguration
ConfigurationProperties
implementation of JsonFeedControllerConfiguration
.- Since:
- 2.2.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getPath()
@NonNull String
boolean
void
setEnabled
(boolean enabled) WhetherJsonFeedController
should be enabled.void
ConfiguresJsonFeedController
path.void
setRootPath
(@NonNull String rootPath) ConfiguresJsonFeedController
rootpath.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ROOT_PATH
- See Also:
-
DEFAULT_PATH
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
JsonFeedControllerConfigurationProperties
public JsonFeedControllerConfigurationProperties()
-
-
Method Details
-
getRootPath
- Specified by:
getRootPath
in interfaceJsonFeedControllerConfiguration
- Returns:
- Configures
JsonFeedController
root path.
-
setRootPath
ConfiguresJsonFeedController
rootpath. Default value "/feeds"- Parameters:
rootPath
- Path to be matched by Token Propagation Filter.
-
getPath
- Specified by:
getPath
in interfaceJsonFeedControllerConfiguration
- Returns:
- Configures
JsonFeedController
path.
-
setPath
ConfiguresJsonFeedController
path. Default value "/json"- Parameters:
path
- Path to be matched by Token Propagation Filter.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) WhetherJsonFeedController
should be enabled. Default value (true).- Parameters:
enabled
- enabled flag
-