public final class Cookie extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String string)
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh".
|
static JSONObject |
toJSONObject(String string)
Convert a cookie specification string into a JSONObject.
|
static String |
toString(JSONObject o)
Convert a JSONObject into a cookie specification string.
|
static String |
unescape(String s)
Convert
%hh sequences to single characters, and convert plus to space. |
public static String escape(String string)
string - The source string.public static JSONObject toJSONObject(String string) throws JSONException
string - The cookie specification string.JSONExceptionpublic static String toString(JSONObject o) throws JSONException
o - A JSONObjectJSONExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.