java.lang.Object
org.glassfish.grizzly.http.util.CookieHeaderParser
Cookie header parser based on RFC6265
The parsing of cookies using RFC6265 is more relaxed that the specification in the following ways:
- Values 0x80 to 0xFF are permitted in cookie-octet to support the use of UTF-8 in cookie values as used by HTML 5.
- For cookies without a value, the '=' is not required after the name as some browsers do not sent it.
Implementation note:
This class has been carefully tuned.
- Author:
- The Tomcat team, Arjan Tijms
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isToken
(int c) static void
parseCookie
(byte[] bytes, int offset, int len, Cookies serverCookies)
-
Method Details
-
parseCookie
-
isToken
public static boolean isToken(int c)
-