|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.util.CookieParserUtils
public class CookieParserUtils
The set of Cookie utility methods for cookie parsing. There is duplication of logic within which we know to be frowned upon, however it is done with performance in mind.
| Constructor Summary | |
|---|---|
CookieParserUtils()
|
|
| Method Summary | |
|---|---|
static void |
parseClientCookies(Cookies cookies,
Buffer buffer,
int off,
int len)
Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVK |
static void |
parseClientCookies(Cookies cookies,
Buffer buffer,
int off,
int len,
boolean versionOneStrictCompliance)
Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVK |
static void |
parseClientCookies(Cookies cookies,
String cookiesStr,
boolean versionOneStrictCompliance)
Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVK |
static void |
parseServerCookies(Cookies cookies,
Buffer buffer,
int off,
int len,
boolean versionOneStrictCompliance)
|
static void |
parseServerCookies(Cookies cookies,
String cookiesStr,
boolean versionOneStrictCompliance)
|
static void |
unescapeDoubleQuotes(BufferChunk bc)
Unescapes any double quotes in the given cookie value. |
static int |
unescapeDoubleQuotes(Buffer buffer,
int start,
int length)
Un-escapes any double quotes in the given cookie value. |
static void |
unescapeDoubleQuotes(CharChunk cc)
Unescapes any double quotes in the given cookie value. |
static void |
unescapeDoubleQuotes(DataChunk dc)
Unescapes any double quotes in the given cookie value. |
static String |
unescapeDoubleQuotes(String s,
int start,
int length)
Unescapes any double quotes in the given cookie value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieParserUtils()
| Method Detail |
|---|
public static void parseClientCookies(Cookies cookies,
Buffer buffer,
int off,
int len)
public static void parseClientCookies(Cookies cookies,
Buffer buffer,
int off,
int len,
boolean versionOneStrictCompliance)
public static void parseClientCookies(Cookies cookies,
String cookiesStr,
boolean versionOneStrictCompliance)
public static void parseServerCookies(Cookies cookies,
Buffer buffer,
int off,
int len,
boolean versionOneStrictCompliance)
public static void parseServerCookies(Cookies cookies,
String cookiesStr,
boolean versionOneStrictCompliance)
public static void unescapeDoubleQuotes(DataChunk dc)
dc - The cookie value to modifypublic static void unescapeDoubleQuotes(BufferChunk bc)
bc - The cookie value to modifypublic static void unescapeDoubleQuotes(CharChunk cc)
cc - The cookie value to modify
public static int unescapeDoubleQuotes(Buffer buffer,
int start,
int length)
buffer - the cookie buffer.start - start position.length - number of bytes to un-escape.
public static String unescapeDoubleQuotes(String s,
int start,
int length)
s - The cookie value to modify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||