Class ServerCookie

    • Field Detail

      • GMT_ZONE

        public static final TimeZone GMT_ZONE
        GMT timezone - all HTTP dates are on GMT
    • Constructor Detail

      • ServerCookie

        public ServerCookie()
    • Method Detail

      • isToken

        public static boolean isToken​(String value)
      • containsCTL

        public static boolean containsCTL​(String value,
                                          int version)
      • isToken2

        public static boolean isToken2​(String value)
      • checkName

        public static boolean checkName​(String name)
        Deprecated.
        - Not used
      • getCookieHeaderName

        public static String getCookieHeaderName​(int version)
        Return the header name to set the cookie, based on cookie version.
      • formatOldCookie

        public static String formatOldCookie​(Date d)
      • alreadyQuoted

        public static boolean alreadyQuoted​(String value)
      • maybeQuote2

        public static void maybeQuote2​(int version,
                                       StringBuffer buf,
                                       String value)
        Quotes values using rules that vary depending on Cookie version.
        Parameters:
        version -
        buf -
        value -