public class ServerCookie extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static TimeZone |
GMT_ZONE
GMT timezone - all HTTP dates are on GMT
|
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 httpOnly) |
static boolean |
checkName(String name)
Deprecated.
- Not used
|
static boolean |
containsCTL(String value,
int version) |
static String |
formatOldCookie(Date d) |
static void |
formatOldCookie(Date d,
StringBuffer sb,
FieldPosition fp) |
static String |
getCookieHeaderName(int version)
Return the header name to set the cookie, based on cookie version.
|
static boolean |
isToken(String value) |
static boolean |
isToken2(String value) |
static void |
maybeQuote(int version,
StringBuffer buf,
String value)
Deprecated.
- Not used
|
static void |
maybeQuote2(int version,
StringBuffer buf,
String value)
Quotes values using rules that vary depending on Cookie version.
|
public static final TimeZone GMT_ZONE
public static boolean isToken(String value)
public static boolean containsCTL(String value, int version)
public static boolean isToken2(String value)
public static boolean checkName(String name)
public static String getCookieHeaderName(int version)
public static void formatOldCookie(Date d, StringBuffer sb, FieldPosition fp)
public static void appendCookieValue(StringBuffer headerBuf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure, boolean httpOnly)
@Deprecated public static void maybeQuote(int version, StringBuffer buf, String value)
public static boolean alreadyQuoted(String value)
public static void maybeQuote2(int version, StringBuffer buf, String value)
version
- buf
- value
- Copyright © 2016 JBoss by Red Hat. All rights reserved.