public abstract class CookiePersistence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.http.cookie.CookieConfiguration |
cookieConfiguration |
Modifier | Constructor and Description |
---|---|
protected |
CookiePersistence(io.micronaut.http.cookie.CookieConfiguration cookieConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<java.lang.String> |
retrieveValue(io.micronaut.http.HttpRequest<?> request) |
protected void |
save(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse<?> response,
java.lang.String value) |
protected final io.micronaut.http.cookie.CookieConfiguration cookieConfiguration
protected CookiePersistence(io.micronaut.http.cookie.CookieConfiguration cookieConfiguration)
cookieConfiguration
- Cookie Configurationprotected java.util.Optional<java.lang.String> retrieveValue(io.micronaut.http.HttpRequest<?> request)
request
- RequestCookieConfiguration.getCookieName()
protected void save(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @Nullable java.lang.String value)
request
- HTTP Requestresponse
- HTTP Responsevalue
- Saves a cookie with name CookieConfiguration.getCookieName()
with supplied value in the HTTP response.