public class Cookie extends Object
Cookie header parser based on RFC6265 and RFC2109.
The parsing of cookies using RFC6265 is more relaxed that the specification in the following ways:
The parsing of cookies using RFC2109 is more relaxed that the specification in the following ways:
Implementation note:
This class has been carefully tuned to ensure that it has equal or better
performance than the original Netscape/RFC2109 cookie parser. Before
committing and changes, ensure that the TesterCookiePerformance unit test
continues to give results within 1% for the old and new parsers.
Modifier and Type | Method and Description |
---|---|
static void |
parseCookie(byte[] bytes,
int offset,
int len,
ServerCookies serverCookies) |
static String |
unescapeCookieValueRfc2109(String input) |
public static void parseCookie(byte[] bytes, int offset, int len, ServerCookies serverCookies)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.