|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.StringWriter
org.restlet.engine.header.HeaderWriter<Cookie>
org.restlet.engine.header.CookieWriter
public class CookieWriter
Cookie header writer.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
CookieWriter()
|
Method Summary | |
---|---|
CookieWriter |
append(Cookie cookie)
Appends a value. |
CookieWriter |
append(List<Cookie> cookies)
Appends a list of cookies as an HTTP header. |
CookieWriter |
appendValue(String value,
int version)
Appends a source string as an HTTP comment. |
static void |
getCookies(List<Cookie> source,
Map<String,Cookie> destination)
Gets the cookies whose name is a key in the given map. |
static String |
write(Cookie cookie)
Writes a cookie. |
static String |
write(List<Cookie> cookies)
Writes a cookie. |
Methods inherited from class org.restlet.engine.header.HeaderWriter |
---|
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator, canWrite |
Methods inherited from class java.io.StringWriter |
---|
append, close, flush, getBuffer, toString, write, write, write, write |
Methods inherited from class java.io.Writer |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CookieWriter()
Method Detail |
---|
public static void getCookies(List<Cookie> source, Map<String,Cookie> destination)
source
- The source list of cookies.destination
- The cookies map controlling the reading.public static String write(Cookie cookie) throws IllegalArgumentException
cookie
- The cookie to format.
IllegalArgumentException
- If the Cookie contains illegal values.public static String write(List<Cookie> cookies)
cookies
- The cookies to format.
public CookieWriter append(Cookie cookie) throws IllegalArgumentException
HeaderWriter
append
in class HeaderWriter<Cookie>
cookie
- The value.
IllegalArgumentException
public CookieWriter append(List<Cookie> cookies)
cookies
- The list of cookies to format.
public CookieWriter appendValue(String value, int version)
value
- The source string to format.version
- The cookie version.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |