|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.noelios.restlet.http.CookieUtils
public class CookieUtils
Cookie manipulation utilities.
| Constructor Summary | |
|---|---|
CookieUtils()
|
|
| Method Summary | |
|---|---|
static String |
format(Cookie cookie)
Formats a cookie. |
static void |
format(Cookie cookie,
Appendable destination)
Formats a cookie setting. |
static String |
format(CookieSetting cookieSetting)
Formats a cookie setting. |
static void |
format(CookieSetting cookieSetting,
Appendable destination)
Formats a cookie setting. |
static String |
format(List<Cookie> cookies)
Formats a list of cookies as an HTTP header. |
static void |
getCookies(List<Cookie> source,
Map<String,Cookie> destination)
Gets the cookies whose name is a key in the given map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieUtils()
| Method Detail |
|---|
public static String format(Cookie cookie)
throws IllegalArgumentException
cookie - The cookie to format.
IllegalArgumentException - If the Cookie contains illegal values.
public static void format(Cookie cookie,
Appendable destination)
throws IllegalArgumentException,
IOException
cookie - The cookie to format.destination - The appendable destination.
IOException
IllegalArgumentException - If the Cookie contains illegal values.
public static String format(CookieSetting cookieSetting)
throws IllegalArgumentException
cookieSetting - The cookie setting to format.
IllegalArgumentException - If the CookieSetting can not be formatted to a String
public static void format(CookieSetting cookieSetting,
Appendable destination)
throws IOException,
IllegalArgumentException
cookieSetting - The cookie setting to format.destination - The appendable destination.
IOException
IllegalArgumentException - If the CookieSetting can not be formatted to a String
public static String format(List<Cookie> cookies)
throws IllegalArgumentException
cookies - The list of cookies to format.
IllegalArgumentException - If one of the Cookies contains illegal values
public static void getCookies(List<Cookie> source,
Map<String,Cookie> destination)
source - The source list of cookies.destination - The cookies map controlling the reading.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||