public class CookieSerializerUtils extends Object
Constructor and Description |
---|
CookieSerializerUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
alreadyQuoted(String value) |
static int |
maybeQuote2(int version,
Buffer buf,
String value,
boolean versionOneStrictCompliance)
Quotes values using rules that vary depending on Cookie version.
|
static int |
maybeQuote2(int version,
Buffer buf,
String value,
boolean allowVersionSwitch,
boolean versionOneStrictCompliance) |
static int |
maybeQuote2(int version,
Buffer buf,
String value,
String literals,
boolean allowVersionSwitch,
boolean versionOneStrictCompliance) |
static int |
maybeQuote2(int version,
StringBuilder buf,
String value,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled)
Quotes values using rules that vary depending on Cookie version.
|
static int |
maybeQuote2(int version,
StringBuilder buf,
String value,
boolean allowVersionSwitch,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled) |
static int |
maybeQuote2(int version,
StringBuilder buf,
String value,
String literals,
boolean allowVersionSwitch,
boolean versionOneStrictCompliance,
boolean rfc6265Enabled) |
static void |
serializeClientCookies(Buffer buf,
boolean versionOneStrictCompliance,
Cookie... cookies) |
static void |
serializeClientCookies(Buffer buf,
Cookie... cookies) |
static void |
serializeClientCookies(StringBuilder buf,
boolean versionOneStrictCompliance,
boolean rfc6265Support,
Cookie... cookies) |
static void |
serializeClientCookies(StringBuilder buf,
Cookie... cookies) |
static void |
serializeServerCookie(Buffer buf,
boolean versionOneStrictCompliance,
boolean alwaysAddExpires,
Cookie cookie) |
static void |
serializeServerCookie(Buffer buf,
boolean versionOneStrictCompliance,
boolean alwaysAddExpires,
String name,
String value,
int version,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure,
boolean isHttpOnly) |
static void |
serializeServerCookie(Buffer buf,
Cookie cookie) |
static void |
serializeServerCookie(StringBuilder buf,
boolean versionOneStrictCompliance,
boolean rfc6265Support,
boolean alwaysAddExpires,
Cookie cookie) |
static void |
serializeServerCookie(StringBuilder buf,
boolean versionOneStrictCompliance,
boolean rfc6265Support,
boolean alwaysAddExpires,
String name,
String value,
int version,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure,
boolean isHttpOnly) |
static void |
serializeServerCookie(StringBuilder buf,
Cookie cookie) |
public static void serializeServerCookie(StringBuilder buf, Cookie cookie)
public static void serializeServerCookie(StringBuilder buf, boolean versionOneStrictCompliance, boolean rfc6265Support, boolean alwaysAddExpires, Cookie cookie)
public static void serializeServerCookie(StringBuilder buf, boolean versionOneStrictCompliance, boolean rfc6265Support, boolean alwaysAddExpires, String name, String value, int version, String path, String domain, String comment, int maxAge, boolean isSecure, boolean isHttpOnly)
public static void serializeServerCookie(Buffer buf, boolean versionOneStrictCompliance, boolean alwaysAddExpires, Cookie cookie)
public static void serializeServerCookie(Buffer buf, boolean versionOneStrictCompliance, boolean alwaysAddExpires, String name, String value, int version, String path, String domain, String comment, int maxAge, boolean isSecure, boolean isHttpOnly)
public static void serializeClientCookies(StringBuilder buf, Cookie... cookies)
public static void serializeClientCookies(StringBuilder buf, boolean versionOneStrictCompliance, boolean rfc6265Support, Cookie... cookies)
public static void serializeClientCookies(Buffer buf, boolean versionOneStrictCompliance, Cookie... cookies)
public static int maybeQuote2(int version, StringBuilder buf, String value, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
version
- buf
- value
- public static int maybeQuote2(int version, StringBuilder buf, String value, boolean allowVersionSwitch, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static int maybeQuote2(int version, StringBuilder buf, String value, String literals, boolean allowVersionSwitch, boolean versionOneStrictCompliance, boolean rfc6265Enabled)
public static int maybeQuote2(int version, Buffer buf, String value, boolean versionOneStrictCompliance)
version
- buf
- value
- public static int maybeQuote2(int version, Buffer buf, String value, boolean allowVersionSwitch, boolean versionOneStrictCompliance)
public static int maybeQuote2(int version, Buffer buf, String value, String literals, boolean allowVersionSwitch, boolean versionOneStrictCompliance)
public static boolean alreadyQuoted(String value)
Copyright © 2014 Oracle Corporation. All rights reserved.