Package io.micronaut.http.cookie
Class DefaultServerCookieEncoder
java.lang.Object
io.micronaut.http.cookie.DefaultServerCookieEncoder
- All Implemented Interfaces:
ServerCookieEncoder
@Internal
public final class DefaultServerCookieEncoder
extends Object
implements ServerCookieEncoder
Implementation of
ServerCookieEncoder
which uses HttpCookie
to encode cookies.- Since:
- 4.4.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.http.cookie.ServerCookieEncoder
INSTANCE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultServerCookieEncoder
public DefaultServerCookieEncoder()
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceServerCookieEncoder
- Parameters:
cookies
- Cookies to encode- Returns:
- Returns a string representation for each supplied cookie. The string representation is typically used as the value of the
HttpHeaders.SET_COOKIE
header.
-