Package org.restlet.engine.header
Class CookieSettingReader
- java.lang.Object
-
- org.restlet.engine.header.HeaderReader<org.restlet.data.CookieSetting>
-
- org.restlet.engine.header.CookieSettingReader
-
public class CookieSettingReader extends HeaderReader<org.restlet.data.CookieSetting>
Cookie setting header reader.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description CookieSettingReader(java.lang.String header)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.restlet.data.CookieSetting
read(java.lang.String cookieSetting)
Parses the given String to a CookieSettingorg.restlet.data.CookieSetting
readValue()
Read the next value.-
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
-
-
-
-
Method Detail
-
read
public static org.restlet.data.CookieSetting read(java.lang.String cookieSetting) throws java.lang.IllegalArgumentException
Parses the given String to a CookieSetting- Parameters:
cookieSetting
-- Returns:
- the CookieSetting parsed from the String
- Throws:
java.lang.IllegalArgumentException
- Thrown if the String can not be parsed as CookieSetting.
-
readValue
public org.restlet.data.CookieSetting readValue() throws java.io.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 classHeaderReader<org.restlet.data.CookieSetting>
- Returns:
- The next value.
- Throws:
java.io.IOException
-
-