Package org.apache.tomcat.util.http
Class Rfc6265CookieProcessor
java.lang.Object
org.apache.tomcat.util.http.CookieProcessorBase
org.apache.tomcat.util.http.Rfc6265CookieProcessor
- All Implemented Interfaces:
- CookieProcessor
- 
Field SummaryFields inherited from class org.apache.tomcat.util.http.CookieProcessorBaseANCIENT_DATE, COOKIE_DATE_FORMAT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongenerateHeader(Cookie cookie, HttpServletRequest request) Generate theSet-CookieHTTP header value for the given Cookie.Obtain the character set that will be used when converting between bytes and characters when parsing and/or generating HTTP headers for cookies.voidparseCookieHeader(MimeHeaders headers, ServerCookies serverCookies) Parse the provided headers into server cookie objects.Methods inherited from class org.apache.tomcat.util.http.CookieProcessorBasegetPartitioned, getSameSiteCookies, setPartitioned, setSameSiteCookies
- 
Constructor Details- 
Rfc6265CookieProcessorpublic Rfc6265CookieProcessor()
 
- 
- 
Method Details- 
getCharsetDescription copied from interface:CookieProcessorObtain the character set that will be used when converting between bytes and characters when parsing and/or generating HTTP headers for cookies.- Returns:
- The character set used for byte<->character conversions
 
- 
parseCookieHeaderDescription copied from interface:CookieProcessorParse the provided headers into server cookie objects.- Parameters:
- headers- The HTTP headers to parse
- serverCookies- The server cookies object to populate with the results of the parsing
 
- 
generateHeaderDescription copied from interface:CookieProcessorGenerate theSet-CookieHTTP header value for the given Cookie. This method receives as parameter the servlet request so that it can make decisions based on request properties. One such use-case is decide if the SameSite attribute should be added to the cookie based on the User-Agent or other request header because there are browser versions incompatible with the SameSite attribute. This is described by the Chromium project.- Parameters:
- cookie- The cookie for which the header will be generated
- request- The servlet request
- Returns:
- The header value in a form that can be added directly to the response
 
 
-