public class Cookie extends Object
Constructor and Description |
---|
Cookie() |
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.JSONException
public static String toString(JSONObject o) throws JSONException
o
- A JSONObjectJSONException
Copyright © 2014 The Apache Software Foundation. All rights reserved.