@ConfigurationProperties(value="jsonfeed") public class JsonFeedControllerConfigurationProperties extends java.lang.Object implements JsonFeedControllerConfiguration
ConfigurationProperties
implementation of JsonFeedControllerConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_PATH |
static java.lang.String |
DEFAULT_ROOT_PATH |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
JsonFeedControllerConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
java.lang.String |
getRootPath() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Whether
JsonFeedController should be enabled. |
void |
setPath(java.lang.String path)
Configures
JsonFeedController path. |
void |
setRootPath(java.lang.String rootPath)
Configures
JsonFeedController rootpath. |
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_ROOT_PATH
public static final java.lang.String DEFAULT_PATH
public static final boolean DEFAULT_ENABLED
public JsonFeedControllerConfigurationProperties()
@NonNull public java.lang.String getRootPath()
getRootPath
in interface JsonFeedControllerConfiguration
JsonFeedController
root path.public void setRootPath(@NonNull java.lang.String rootPath)
JsonFeedController
rootpath. Default value "/feeds"rootPath
- Path to be matched by Token Propagation Filter.@NonNull public java.lang.String getPath()
getPath
in interface JsonFeedControllerConfiguration
JsonFeedController
path.public void setPath(@NonNull java.lang.String path)
JsonFeedController
path. Default value "/json"path
- Path to be matched by Token Propagation Filter.public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
JsonFeedController
should be enabled. Default value (true).enabled
- enabled flag