public final class LegacyCookieProcessor extends CookieProcessorBase
ANCIENT_DATE, COOKIE_DATE_FORMAT| Constructor and Description |
|---|
LegacyCookieProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateHeader(Cookie cookie)
Generate the HTTP header value for the given Cookie.
|
boolean |
getAllowEqualsInValue() |
boolean |
getAllowHttpSepsInV0() |
boolean |
getAllowNameOnly() |
boolean |
getAlwaysAddExpires() |
java.nio.charset.Charset |
getCharset()
The character set that will be used when converting between bytes and
characters when parsing and/or generating HTTP headers for cookies.
|
boolean |
getForwardSlashIsSeparator() |
boolean |
getPreserveCookieHeader()
Deprecated.
No longer used. Cookie headers are now always preserved. Will
be removed in Tomcat 8.5.x.
|
void |
parseCookieHeader(MimeHeaders headers,
ServerCookies serverCookies)
Parse the provided headers into server cookie objects.
|
void |
setAllowEqualsInValue(boolean allowEqualsInValue) |
void |
setAllowHttpSepsInV0(boolean allowHttpSepsInV0) |
void |
setAllowNameOnly(boolean allowNameOnly) |
void |
setAlwaysAddExpires(boolean alwaysAddExpires) |
void |
setForwardSlashIsSeparator(boolean forwardSlashIsSeparator) |
void |
setPreserveCookieHeader(boolean preserveCookieHeader)
Deprecated.
No longer used. Cookie headers are now always preserved. Will
be removed in Tomcat 8.5.x.
|
public boolean getAllowEqualsInValue()
public void setAllowEqualsInValue(boolean allowEqualsInValue)
public boolean getAllowNameOnly()
public void setAllowNameOnly(boolean allowNameOnly)
public boolean getAllowHttpSepsInV0()
public void setAllowHttpSepsInV0(boolean allowHttpSepsInV0)
@Deprecated public boolean getPreserveCookieHeader()
@Deprecated public void setPreserveCookieHeader(boolean preserveCookieHeader)
preserveCookieHeader - Ignoredpublic boolean getForwardSlashIsSeparator()
public void setForwardSlashIsSeparator(boolean forwardSlashIsSeparator)
public boolean getAlwaysAddExpires()
public void setAlwaysAddExpires(boolean alwaysAddExpires)
public java.nio.charset.Charset getCharset()
CookieProcessorpublic void parseCookieHeader(MimeHeaders headers, ServerCookies serverCookies)
CookieProcessorpublic java.lang.String generateHeader(Cookie cookie)
CookieProcessorCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.