Class DefaultCookieDecoder

java.lang.Object
io.micronaut.http.client.jdk.cookie.DefaultCookieDecoder
All Implemented Interfaces:
Ordered, CookieDecoder

@Singleton @Internal public class DefaultCookieDecoder extends Object implements CookieDecoder
Default implementation of CookieDecoder that returns the cookies from the request.
Since:
4.0.0
Author:
Tim Yates
  • Constructor Details

    • DefaultCookieDecoder

      public DefaultCookieDecoder()
  • Method Details

    • decode

      public Optional<Cookies> decode(HttpRequest<?> request)
      Description copied from interface: CookieDecoder
      Decode the cookies from the request.
      Specified by:
      decode in interface CookieDecoder
      Parameters:
      request - the request
      Returns:
      the cookies or empty if none
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
      Returns:
      The order of the object. Defaults to zero (no order).