public class ServerCookie extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ALWAYS_ADD_EXPIRES
If set to false, we don't use the IE6/7 Max-Age/Expires work around
|
static boolean |
STRICT_SERVLET_COMPLIANCE
If set to true, we parse cookies according to the servlet spec,
|
Constructor and Description |
---|
ServerCookie() |
Modifier and Type | Method and Description |
---|---|
static boolean |
alreadyQuoted(String value) |
static void |
appendCookieValue(StringBuffer headerBuf,
int version,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure,
boolean isHttpOnly) |
static boolean |
containsCTL(String value,
int version) |
static boolean |
isToken(String value) |
static boolean |
isToken(String value,
String literals) |
static boolean |
isToken2(String value) |
static boolean |
isToken2(String value,
String literals) |
static int |
maybeQuote2(int version,
StringBuffer buf,
String value) |
static int |
maybeQuote2(int version,
StringBuffer buf,
String value,
boolean allowVersionSwitch) |
static int |
maybeQuote2(int version,
StringBuffer buf,
String value,
String literals,
boolean allowVersionSwitch) |
public static final boolean STRICT_SERVLET_COMPLIANCE
public static final boolean ALWAYS_ADD_EXPIRES
public static void appendCookieValue(StringBuffer headerBuf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure, boolean isHttpOnly)
public static int maybeQuote2(int version, StringBuffer buf, String value)
public static int maybeQuote2(int version, StringBuffer buf, String value, boolean allowVersionSwitch)
public static int maybeQuote2(int version, StringBuffer buf, String value, String literals, boolean allowVersionSwitch)
public static boolean containsCTL(String value, int version)
public static boolean alreadyQuoted(String value)
public static boolean isToken(String value)
public static boolean isToken2(String value)
Copyright © 2022. All rights reserved.