Package org.apache.tomcat.util.http
Class CookieProcessorBase
- java.lang.Object
-
- org.apache.tomcat.util.http.CookieProcessorBase
-
- All Implemented Interfaces:
CookieProcessor
- Direct Known Subclasses:
Rfc6265CookieProcessor
public abstract class CookieProcessorBase extends java.lang.Object implements CookieProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ANCIENT_DATE
protected static java.lang.ThreadLocal<java.text.DateFormat>
COOKIE_DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description CookieProcessorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCookiesWithoutEquals()
protected CookiesWithoutEquals
getCookiesWithoutEqualsInternal()
boolean
getPartitioned()
Should thePartitioned
attribute be added by default to cookies created for this web application.SameSiteCookies
getSameSiteCookies()
void
setCookiesWithoutEquals(java.lang.String cookiesWithoutEquals)
void
setPartitioned(boolean partitioned)
Configure whether thePartitioned
attribute should be added by default to cookies created for this web application.void
setSameSiteCookies(java.lang.String sameSiteCookies)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tomcat.util.http.CookieProcessor
generateHeader, getCharset, parseCookieHeader
-
-
-
-
Method Detail
-
getCookiesWithoutEquals
public java.lang.String getCookiesWithoutEquals()
-
getCookiesWithoutEqualsInternal
protected CookiesWithoutEquals getCookiesWithoutEqualsInternal()
-
setCookiesWithoutEquals
public void setCookiesWithoutEquals(java.lang.String cookiesWithoutEquals)
-
getSameSiteCookies
public SameSiteCookies getSameSiteCookies()
-
setSameSiteCookies
public void setSameSiteCookies(java.lang.String sameSiteCookies)
-
getPartitioned
public boolean getPartitioned()
Should thePartitioned
attribute be added by default to cookies created for this web application.The name of the attribute used to indicate a partitioned cookie as part of CHIPS is not defined by an RFC and may change in a non-backwards compatible way once equivalent functionality is included in an RFC.
- Returns:
true
if thePartitioned
attribute should be added by default to cookies created for this web application, otherwisefalse
-
setPartitioned
public void setPartitioned(boolean partitioned)
Configure whether thePartitioned
attribute should be added by default to cookies created for this web application.The name of the attribute used to indicate a partitioned cookie as part of CHIPS is not defined by an RFC and may change in a non-backwards compatible way once equivalent functionality is included in an RFC.
- Parameters:
partitioned
-true
if thePartitioned
attribute should be added by default to cookies created for this web application, otherwisefalse
-
-