|
||||||||||
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 java.lang.String |
format(Cookie cookie)
Formats a cookie. |
static void |
format(Cookie cookie,
java.lang.Appendable destination)
Formats a cookie setting. |
static java.lang.String |
format(CookieSetting cookieSetting)
Formats a cookie setting. |
static void |
format(CookieSetting cookieSetting,
java.lang.Appendable destination)
Formats a cookie setting. |
static java.lang.String |
format(java.util.List<Cookie> cookies)
Formats a list of cookies as an HTTP header. |
static void |
getCookies(java.util.List<Cookie> source,
java.util.Map<java.lang.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 java.lang.String format(Cookie cookie) throws java.lang.IllegalArgumentException
cookie
- The cookie to format.
java.lang.IllegalArgumentException
- If the Cookie contains illegal values.public static void format(Cookie cookie, java.lang.Appendable destination) throws java.lang.IllegalArgumentException, java.io.IOException
cookie
- The cookie to format.destination
- The appendable destination.
java.io.IOException
java.lang.IllegalArgumentException
- If the Cookie contains illegal values.public static java.lang.String format(CookieSetting cookieSetting) throws java.lang.IllegalArgumentException
cookieSetting
- The cookie setting to format.
java.lang.IllegalArgumentException
- If the CookieSetting can not be formatted to a Stringpublic static void format(CookieSetting cookieSetting, java.lang.Appendable destination) throws java.io.IOException, java.lang.IllegalArgumentException
cookieSetting
- The cookie setting to format.destination
- The appendable destination.
java.io.IOException
java.lang.IllegalArgumentException
- If the CookieSetting can not be formatted to a Stringpublic static java.lang.String format(java.util.List<Cookie> cookies) throws java.lang.IllegalArgumentException
cookies
- The list of cookies to format.
java.lang.IllegalArgumentException
- If one of the Cookies contains illegal valuespublic static void getCookies(java.util.List<Cookie> source, java.util.Map<java.lang.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 |