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 Stringstatic final TimeZoneGMT timezone - all HTTP dates are on GMTprivate static final LocaleUS locale - all HTTP dates are in englishprivate static final StringPattern used for old cookiesprivate static final DateFormatprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanalreadyQuoted(String value) static voidappendCookieValue(StringBuffer headerBuf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure) static booleanDeprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class.static booleancontainsCTL(String value, int version) private static StringescapeDoubleQuotes(String s, int beginIndex, int endIndex) Escapes any double quotes in the given string.static Stringstatic voidformatOldCookie(Date d, StringBuffer sb, FieldPosition fp) static StringgetCookieHeaderName(int version) Return the header name to set the cookie, based on cookie version.static booleanstatic booleanstatic voidmaybeQuote(int version, StringBuffer buf, String value) Deprecated.Not used: Deprecated in the orginal org.apache.tomcat.util.http.ServerCookie class.static voidmaybeQuote2(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
-