org.glassfish.grizzly.http
Class Cookies

java.lang.Object
  extended by org.glassfish.grizzly.http.Cookies

public final class Cookies
extends Object

A collection of cookies - reusable and tuned for server side performance. Based on RFC2965 ( and 2109 ) This class is not synchronized.

Author:
Costin Manolache, kevin seguin

Field Summary
protected static boolean[] separators
           
static char[] SEPARATORS
           
 
Constructor Summary
Cookies(MimeHeaders headers)
          Construct a new cookie collection, that will extract the information from headers.
 
Method Summary
 Cookie findByName(String cookieName)
           
 Collection<Cookie> get()
           
 void recycle()
          Recycle.
 String toString()
          EXPENSIVE!!! only for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATORS

public static final char[] SEPARATORS

separators

protected static final boolean[] separators
Constructor Detail

Cookies

public Cookies(MimeHeaders headers)
Construct a new cookie collection, that will extract the information from headers.

Parameters:
headers - Cookies are lazy-evaluated and will extract the information from the provided headers.
Method Detail

get

public Collection<Cookie> get()

recycle

public void recycle()
Recycle.


toString

public String toString()
EXPENSIVE!!! only for debugging.

Overrides:
toString in class Object

findByName

public Cookie findByName(String cookieName)


Copyright © 2010 Oracle Corpration. All Rights Reserved.