Class AwsCookieProcessor
java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.AwsCookieProcessor
- All Implemented Interfaces:
CookieProcessor
Implementation of the CookieProcessor interface that provides cookie parsing and generation functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateHeader(jakarta.servlet.http.Cookie cookie) Generate the Set-Cookie HTTP header value for the given Cookie.jakarta.servlet.http.Cookie[]parseCookieHeader(String cookieHeader) Parse the provided cookie header value into an array of Cookie objects.
-
Constructor Details
-
AwsCookieProcessor
public AwsCookieProcessor()
-
-
Method Details
-
parseCookieHeader
Description copied from interface:CookieProcessorParse the provided cookie header value into an array of Cookie objects.- Specified by:
parseCookieHeaderin interfaceCookieProcessor- 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
Description copied from interface:CookieProcessorGenerate the Set-Cookie HTTP header value for the given Cookie.- Specified by:
generateHeaderin interfaceCookieProcessor- 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
-