org.restlet.engine.header
Class CookieReader
java.lang.Object
org.restlet.engine.header.HeaderReader<Cookie>
org.restlet.engine.header.CookieReader
public class CookieReader
- extends HeaderReader<Cookie>
Cookie header reader.
- Author:
- Jerome Louvel
Methods inherited from class org.restlet.engine.header.HeaderReader |
addValues, canAdd, createParameter, createParameter, mark, peek, read, readActualNamedValue, readComment, readDate, readDigits, readHeader, readHeader, readNamedValue, readParameter, readQuotedString, readRawText, readRawValue, readToken, readValues, reset, skipParameterSeparator, skipSpaces, skipValueSeparator, unread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieReader
public CookieReader(String header)
- Constructor.
- Parameters:
header
- The header to read.
read
public static Cookie read(String cookie)
throws IllegalArgumentException
- Parses the given String to a Cookie
- Parameters:
cookie
-
- Returns:
- the Cookie parsed from the String
- Throws:
IllegalArgumentException
- Thrown if the String can not be parsed as Cookie.
readValue
public Cookie readValue()
throws IOException
- Description copied from class:
HeaderReader
- Read the next value. There can be multiple values for a single header.
Returns null by default.
- Overrides:
readValue
in class HeaderReader<Cookie>
- Returns:
- The next value.
- Throws:
IOException
Copyright © 2005-2013 Restlet.