Class AwsCookieProcessor

java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.AwsCookieProcessor
All Implemented Interfaces:
CookieProcessor

public class AwsCookieProcessor extends Object implements CookieProcessor
Implementation of the CookieProcessor interface that provides cookie parsing and generation functionality.
  • Constructor Details

    • AwsCookieProcessor

      public AwsCookieProcessor()
  • Method Details

    • parseCookieHeader

      public jakarta.servlet.http.Cookie[] parseCookieHeader(String cookieHeader)
      Description copied from interface: CookieProcessor
      Parse the provided cookie header value into an array of Cookie objects.
      Specified by:
      parseCookieHeader in interface CookieProcessor
      Parameters:
      cookieHeader - The cookie header value string to parse, e.g., "SID=31d4d96e407aad42; lang=en-US"
      Returns:
      An array of Cookie objects parsed from the cookie header value
    • generateHeader

      public String generateHeader(jakarta.servlet.http.Cookie cookie)
      Description copied from interface: CookieProcessor
      Generate the Set-Cookie HTTP header value for the given Cookie.
      Specified by:
      generateHeader in interface CookieProcessor
      Parameters:
      cookie - The cookie for which the header will be generated
      Returns:
      The header value in a form that can be added directly to the response