Class ServerCookie
java.lang.Object
org.jboss.resteasy.plugins.delegates.ServerCookie
- All Implemented Interfaces:
Serializable
Server-side cookie representation. Stolen from Tomcat.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
static final TimeZone
GMT timezone - all HTTP dates are on GMTprivate static final Locale
US locale - all HTTP dates are in englishprivate static final String
Pattern used for old cookiesprivate static final DateFormat
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) static boolean
Deprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class.static boolean
containsCTL
(String value, int version) private static String
escapeDoubleQuotes
(String s, int beginIndex, int endIndex) Escapes any double quotes in the given string.static String
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
static boolean
static void
maybeQuote
(int version, StringBuffer buf, String value) Deprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class.static void
maybeQuote2
(int version, StringBuffer buf, String value) Quotes values using rules that vary depending on Cookie version.
-
Field Details
-
tspecials
- See Also:
-
tspecials2
- See Also:
-
LOCALE_US
US locale - all HTTP dates are in english -
GMT_ZONE
GMT timezone - all HTTP dates are on GMT -
OLD_COOKIE_PATTERN
Pattern used for old cookies- See Also:
-
oldCookieFormat
-
ancientDate
-
-
Constructor Details
-
ServerCookie
public ServerCookie()
-
-
Method Details
-
isToken
-
containsCTL
-
isToken2
-
checkName
Deprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class. -
getCookieHeaderName
Return the header name to set the cookie, based on cookie version. -
formatOldCookie
-
formatOldCookie
-
appendCookieValue
-
maybeQuote
Deprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class. -
alreadyQuoted
-
maybeQuote2
Quotes values using rules that vary depending on Cookie version.- Parameters:
version
-buf
-value
-
-
escapeDoubleQuotes
Escapes any double quotes in the given string.- Parameters:
s
- the input stringbeginIndex
- start index inclusiveendIndex
- exclusive- Returns:
- The (possibly) escaped string
-