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
Constructors -
Method Summary
-
Constructor Details
-
DefaultClientCookieEncoder
public DefaultClientCookieEncoder()
-
-
Method Details
-
encode
Description copied from interface:ClientCookieEncoderEncodes aCookieinto a String. Typically used to set theHttpHeaders.COOKIEvalue 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:
encodein 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:
-