public class CookieReader extends HeaderReader<Cookie>
| Constructor and Description |
|---|
CookieReader(java.lang.String header)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Cookie |
read(java.lang.String cookie)
Parses the given String to a Cookie
|
Cookie |
readValue()
Read the next value.
|
addValues, canAdd, createParameter, createParameter, mark, peek, read, readActualNamedValue, readComment, readDate, readDigits, readHeader, readHeader, readNamedValue, readParameter, readQuotedString, readRawText, readRawValue, readToken, readValues, reset, skipParameterSeparator, skipSpaces, skipValueSeparator, unreadpublic CookieReader(java.lang.String header)
header - The header to read.public static Cookie read(java.lang.String cookie) throws java.lang.IllegalArgumentException
cookie - java.lang.IllegalArgumentException - Thrown if the String can not be parsed as Cookie.public Cookie readValue() throws java.io.IOException
HeaderReaderreadValue in class HeaderReader<Cookie>java.io.IOExceptionCopyright © 2005-2024 Restlet.