Package io.micronaut.http.cookie
Class DefaultClientCookieEncoder
java.lang.Object
io.micronaut.http.cookie.DefaultClientCookieEncoder
- All Implemented Interfaces:
ClientCookieEncoder
@Internal
public final class DefaultClientCookieEncoder
extends Object
implements ClientCookieEncoder
- Since:
- 4.3.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.http.cookie.ClientCookieEncoder
INSTANCE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultClientCookieEncoder
public DefaultClientCookieEncoder()
-
-
Method Details
-
encode
Description copied from interface:ClientCookieEncoder
Encodes aCookie
into a String. Typically used to set theHttpHeaders.COOKIE
value for example in an HTTP Client. The cookie gets serialized by concatenating the cookie's name, the %x3D ("=") character, and the cookie's value.- Specified by:
encode
in interfaceClientCookieEncoder
- Parameters:
cookie
- Cookie to encode- Returns:
- The cookie serialized into a string by concatenating the cookie's name, the %x3D ("=") character, and the cookie's value.
- See Also:
-