public class Cookie extends Object
| 构造器和说明 |
|---|
Cookie() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 jo)
Convert a JSONObject into a cookie specification string.
|
static String |
unescape(String string)
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 jo) throws JSONException
jo - A JSONObjectJSONExceptionCopyright © 2015. All rights reserved.