com.noelios.restlet.util
Class CookieReader

java.lang.Object
  extended by com.noelios.restlet.util.HeaderReader
      extended by com.noelios.restlet.util.CookieReader

public class CookieReader
extends HeaderReader

Cookie header reader.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
CookieReader(Logger logger, String header)
          Constructor.
 
Method Summary
 Cookie readCookie()
          Reads the next cookie available or null.
 CookieSetting readCookieSetting()
          Reads the next cookie setting available or null.
 
Methods inherited from class com.noelios.restlet.util.HeaderReader
appendQuotedString, isLinearWhiteSpace, isValueSeparator, read, readQuotedString, readValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieReader

public CookieReader(Logger logger,
                    String header)
Constructor.

Parameters:
logger - The logger to use.
header - The header to read.
Method Detail

readCookie

public Cookie readCookie()
                  throws IOException
Reads the next cookie available or null.

Returns:
The next cookie available or null.
Throws:
IOException

readCookieSetting

public CookieSetting readCookieSetting()
                                throws IOException
Reads the next cookie setting available or null.

Returns:
The next cookie setting available or null.
Throws:
IOException


Copyright © 2005-2007 Noelios Consulting.