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

Constructor Summary
Cookies()
           
 
Method Summary
 Cookie findByName(String cookieName)
           
 Cookie[] get()
           
 Cookie getNextUnusedCookie()
           
 boolean initialized()
           
 void recycle()
          Recycle.
 void setHeaders(MimeHeaders headers)
           
 String toString()
          EXPENSIVE!!! only for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cookies

public Cookies()
Method Detail

initialized

public boolean initialized()

get

public Cookie[] get()

setHeaders

public void setHeaders(MimeHeaders headers)

getNextUnusedCookie

public Cookie getNextUnusedCookie()

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 © 2012 Oracle Corporation. All Rights Reserved.