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
-
Constructor Summary
-
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 original org.apache.tomcat.util.http.ServerCookie class.static boolean
containsCTL
(String value, int version) 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
maybeQuote2
(int version, StringBuffer buf, String value) Quotes values using rules that vary depending on Cookie version.
-
Field Details
-
GMT_ZONE
GMT timezone - all HTTP dates are on GMT
-
-
Constructor Details
-
ServerCookie
public ServerCookie()
-
-
Method Details
-
isToken
-
containsCTL
-
isToken2
-
checkName
Deprecated.Not used: Deprecated in the original org.apache.tomcat.util.http.ServerCookie class.- Parameters:
name
- name- Returns:
- boolean flag
-
getCookieHeaderName
Return the header name to set the cookie, based on cookie version.- Parameters:
version
- cookie version- Returns:
- cookie header name
-
formatOldCookie
-
formatOldCookie
-
appendCookieValue
-
alreadyQuoted
-
maybeQuote2
Quotes values using rules that vary depending on Cookie version.- Parameters:
version
- cookie versionbuf
- buffervalue
- value
-