public class CookieParserUtils extends Object
Constructor and Description |
---|
CookieParserUtils() |
Modifier and Type | Method and Description |
---|---|
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,
boolean rfc6265Enabled)
Parses a cookie header after the initial "Cookie:"
[WS][$]token[WS]=[WS](token|QV)[;|,]
RFC 2965
JVK
|
static void |
parseClientCookies(Cookies cookies,
byte[] bytes,
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,
byte[] bytes,
int off,
int len,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled)
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,
boolean rfc6265Enabled)
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,
boolean rfc6265Enabled) |
static void |
parseServerCookies(Cookies cookies,
byte[] bytes,
int off,
int len,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled) |
static void |
parseServerCookies(Cookies cookies,
String cookiesStr,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled) |
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(ByteChunk bc)
Unescapes 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.
|
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, boolean rfc6265Enabled)
public static void parseClientCookies(Cookies cookies, byte[] bytes, int off, int len)
public static void parseClientCookies(Cookies cookies, byte[] bytes, int off, int len, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static void parseClientCookies(Cookies cookies, String cookiesStr, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static void parseServerCookies(Cookies cookies, byte[] bytes, int off, int len, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static void parseServerCookies(Cookies cookies, Buffer buffer, int off, int len, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static void parseServerCookies(Cookies cookies, String cookiesStr, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static void unescapeDoubleQuotes(DataChunk dc)
dc
- The cookie value to modifypublic static void unescapeDoubleQuotes(ByteChunk bc)
bc
- 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 modifypublic static int unescapeDoubleQuotes(Buffer buffer, int start, int length)
buffer
- the cookie buffer.start
- start position.length
- number of bytes to un-escape.Copyright © 2015 Oracle Corporation. All rights reserved.