@ConfigurationProperties(value="micronaut.multitenancy.tenantwriter.cookie") public class CookieTenantWriterConfigurationProperties extends Object
ConfigurationProperties implementation of CookieTenantWriterConfiguration.| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_COOKIENAMEThe default cookie name. | 
| static String | DEFAULT_COOKIEPATHDefault Cookie Path. | 
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static boolean | DEFAULT_HTTPONLYThe default http only value. | 
| static boolean | DEFAULT_SECUREThe default secure value. | 
| static String | PREFIX | 
| Constructor and Description | 
|---|
| CookieTenantWriterConfigurationProperties() | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<String> | getCookieDomain()Gets the domain name of this Cookie. | 
| Optional<TemporalAmount> | getCookieMaxAge() | 
| String | getCookiename() | 
| String | getCookieName() | 
| Optional<String> | getCookiePath()The path of the cookie. | 
| Optional<Boolean> | isCookieHttpOnly()Checks to see if this  Cookiecan only be accessed via HTTP. | 
| Optional<Boolean> | isCookieSecure() | 
| boolean | isEnabled() | 
| void | setCookieDomain(String cookieDomain)Sets the domain name of this Cookie. | 
| void | setCookieHttpOnly(boolean cookieHttpOnly)Whether the Cookie can only be accessed via HTTP. | 
| void | setCookieMaxAge(Duration cookieMaxAge)Sets the maximum age of the cookie. | 
| void | setCookiename(String cookiename)Cookie Name. | 
| void | setCookiePath(String cookiePath)Sets the path of the cookie. | 
| void | setCookieSecure(boolean cookieSecure)Sets whether the cookie is secured. | 
| void | setEnabled(boolean enabled)Enables  CookieTenantWriter. | 
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_SECURE
public static final boolean DEFAULT_HTTPONLY
public static final String DEFAULT_COOKIENAME
public static final String DEFAULT_COOKIEPATH
public CookieTenantWriterConfigurationProperties()
public boolean isEnabled()
public void setEnabled(boolean enabled)
CookieTenantWriter. Default value (false).enabled - enabled flagpublic void setCookiename(String cookiename)
cookiename - Cookie name@Nonnull public String getCookiename()
public Optional<String> getCookieDomain()
CookieConfiguration@Nullable public Optional<String> getCookiePath()
CookieConfigurationpublic Optional<Boolean> isCookieHttpOnly()
CookieConfigurationCookie can only be accessed via HTTP.public Optional<TemporalAmount> getCookieMaxAge()
public void setCookieDomain(@Nullable String cookieDomain)
cookieDomain - the domain name of this Cookiepublic void setCookiePath(@Nullable String cookiePath)
cookiePath - The path of the cookie.public void setCookieHttpOnly(boolean cookieHttpOnly)
cookieHttpOnly - Whether the Cookie can only be accessed via HTTP.public void setCookieSecure(boolean cookieSecure)
cookieSecure - True if the cookie is securepublic void setCookieMaxAge(Duration cookieMaxAge)
cookieMaxAge - The maximum age of the cookie