Class LegacyCookieSupport


  • public final class LegacyCookieSupport
    extends java.lang.Object
    Class that contains static constants and utility methods for legacy Set-Cookie format. Porting from JBossWeb and Tomcat code. Note that in general we do not use system properties for configuration, however as these are legacy options that are not widely used an exception has been made in this case.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int adjustedCookieVersion​(Cookie cookie)  
      static void maybeQuote​(java.lang.StringBuilder buf, java.lang.String value)
      Quotes values if required.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • maybeQuote

        public static void maybeQuote​(java.lang.StringBuilder buf,
                                      java.lang.String value)
        Quotes values if required.
        Parameters:
        buf -
        value -
      • adjustedCookieVersion

        public static int adjustedCookieVersion​(Cookie cookie)