public class CookieList
extends java.lang.Object
Constructor and Description |
---|
CookieList() |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
toJSONObject(java.lang.String string)
Convert a cookie list into a JSONObject.
|
static java.lang.String |
toString(JSONObject jo)
Convert a JSONObject into a cookie list.
|
public static JSONObject toJSONObject(java.lang.String string) throws JSONException
To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"), cookieJSONObject.getString("value"));
string
- A cookie list stringJSONException
public static java.lang.String toString(JSONObject jo) throws JSONException
jo
- A JSONObjectJSONException