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
Fields -
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 original org.apache.tomcat.util.http.ServerCookie class.static booleancontainsCTL(String value, int version) 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 voidmaybeQuote2(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
-