org.jboss.resteasy.plugins.delegates
Class ServerCookie

java.lang.Object
  extended by org.jboss.resteasy.plugins.delegates.ServerCookie
All Implemented Interfaces:
java.io.Serializable

public class ServerCookie
extends java.lang.Object
implements java.io.Serializable

Server-side cookie representation. Stolen from Tomcat.

See Also:
Serialized Form

Field Summary
static java.util.TimeZone GMT_ZONE
          GMT timezone - all HTTP dates are on GMT
 
Constructor Summary
ServerCookie()
           
 
Method Summary
static boolean alreadyQuoted(java.lang.String value)
           
static void appendCookieValue(java.lang.StringBuffer headerBuf, int version, java.lang.String name, java.lang.String value, java.lang.String path, java.lang.String domain, java.lang.String comment, int maxAge, boolean isSecure)
           
static boolean checkName(java.lang.String name)
          Deprecated. - Not used
static boolean containsCTL(java.lang.String value, int version)
           
static java.lang.String formatOldCookie(java.util.Date d)
           
static void formatOldCookie(java.util.Date d, java.lang.StringBuffer sb, java.text.FieldPosition fp)
           
static java.lang.String getCookieHeaderName(int version)
          Return the header name to set the cookie, based on cookie version.
static boolean isToken(java.lang.String value)
           
static boolean isToken2(java.lang.String value)
           
static void maybeQuote(int version, java.lang.StringBuffer buf, java.lang.String value)
          Deprecated. - Not used
static void maybeQuote2(int version, java.lang.StringBuffer buf, java.lang.String value)
          Quotes values using rules that vary depending on Cookie version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GMT_ZONE

public static final java.util.TimeZone GMT_ZONE
GMT timezone - all HTTP dates are on GMT

Constructor Detail

ServerCookie

public ServerCookie()
Method Detail

isToken

public static boolean isToken(java.lang.String value)

containsCTL

public static boolean containsCTL(java.lang.String value,
                                  int version)

isToken2

public static boolean isToken2(java.lang.String value)

checkName

public static boolean checkName(java.lang.String name)
Deprecated. - Not used


getCookieHeaderName

public static java.lang.String getCookieHeaderName(int version)
Return the header name to set the cookie, based on cookie version.


formatOldCookie

public static java.lang.String formatOldCookie(java.util.Date d)

formatOldCookie

public static void formatOldCookie(java.util.Date d,
                                   java.lang.StringBuffer sb,
                                   java.text.FieldPosition fp)

appendCookieValue

public static void appendCookieValue(java.lang.StringBuffer headerBuf,
                                     int version,
                                     java.lang.String name,
                                     java.lang.String value,
                                     java.lang.String path,
                                     java.lang.String domain,
                                     java.lang.String comment,
                                     int maxAge,
                                     boolean isSecure)

maybeQuote

@Deprecated
public static void maybeQuote(int version,
                                         java.lang.StringBuffer buf,
                                         java.lang.String value)
Deprecated. - Not used


alreadyQuoted

public static boolean alreadyQuoted(java.lang.String value)

maybeQuote2

public static void maybeQuote2(int version,
                               java.lang.StringBuffer buf,
                               java.lang.String value)
Quotes values using rules that vary depending on Cookie version.

Parameters:
version -
buf -
value -


Copyright © 2010. All Rights Reserved.