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
  • Constructor Details

    • DefaultClientCookieEncoder

      public DefaultClientCookieEncoder()
  • Method Details

    • encode

      public String encode(Cookie cookie)
      Description copied from interface: ClientCookieEncoder
      Encodes a Cookie into a String. Typically used to set the HttpHeaders.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 interface ClientCookieEncoder
      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: