Package org.apache.tomcat.util.http
Class CookieProcessorBase
- java.lang.Object
- 
- org.apache.tomcat.util.http.CookieProcessorBase
 
- 
- All Implemented Interfaces:
- CookieProcessor
 - Direct Known Subclasses:
- LegacyCookieProcessor,- Rfc6265CookieProcessor
 
 public abstract class CookieProcessorBase extends java.lang.Object implements CookieProcessor 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static java.lang.StringANCIENT_DATEprotected static java.lang.ThreadLocal<java.text.DateFormat>COOKIE_DATE_FORMAT
 - 
Constructor SummaryConstructors Constructor Description CookieProcessorBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgenerateHeader(Cookie cookie, HttpServletRequest request)Deprecated.This implementation calls the deprecatedCookieProcessor.generateHeader(Cookie)method.SameSiteCookiesgetSameSiteCookies()voidsetSameSiteCookies(java.lang.String sameSiteCookies)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tomcat.util.http.CookieProcessorgenerateHeader, getCharset, parseCookieHeader
 
- 
 
- 
- 
- 
Method Detail- 
getSameSiteCookiespublic SameSiteCookies getSameSiteCookies() 
 - 
setSameSiteCookiespublic void setSameSiteCookies(java.lang.String sameSiteCookies) 
 - 
generateHeader@Deprecated public java.lang.String generateHeader(Cookie cookie, HttpServletRequest request) Deprecated.This implementation calls the deprecatedCookieProcessor.generateHeader(Cookie)method. Implementors should not rely on this method as it is present only for transitional compatibility and will be removed in Tomcat 9.Generate 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.- Specified by:
- generateHeaderin interface- CookieProcessor
- 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
 
 
- 
 
-