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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringgetPath()@NonNull StringbooleanvoidsetEnabled(boolean enabled) WhetherJsonFeedControllershould be enabled.voidConfiguresJsonFeedControllerpath.voidsetRootPath(@NonNull String rootPath) ConfiguresJsonFeedControllerrootpath.
-
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:
getRootPathin interfaceJsonFeedControllerConfiguration- Returns:
- Configures
JsonFeedControllerroot path.
-
setRootPath
ConfiguresJsonFeedControllerrootpath. Default value "/feeds"- Parameters:
rootPath- Path to be matched by Token Propagation Filter.
-
getPath
- Specified by:
getPathin interfaceJsonFeedControllerConfiguration- Returns:
- Configures
JsonFeedControllerpath.
-
setPath
ConfiguresJsonFeedControllerpath. Default value "/json"- Parameters:
path- Path to be matched by Token Propagation Filter.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) WhetherJsonFeedControllershould be enabled. Default value (true).- Parameters:
enabled- enabled flag
-