Class w3c.www.http.HttpCookieList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpCookieList

java.lang.Object
   |
   +----w3c.www.http.BasicValue
           |
           +----w3c.www.http.HttpCookieList

public class HttpCookieList
extends BasicValue

Constructor Index

 o HttpCookieList()

Method Index

 o addCookie(String, String)
Add a cookie to this header value.
 o getCookie(String)
Lookup a cookie by name.
 o getValue()
Get this HTTP value, parsed value.
 o parse()
Parse this header value into its various components.
 o removeCookie(String)
Remove a cookie from this header value.
 o updateByteValue()
Update the RFC822 compatible header value for this object.

Constructors

 o HttpCookieList
  public HttpCookieList()

Methods

 o updateByteValue
  protected void updateByteValue()
Update the RFC822 compatible header value for this object.
Overrides:
updateByteValue in class BasicValue
 o parse
  protected void parse() throws HttpParserException
Parse this header value into its various components.
Overrides:
parse in class BasicValue
 o getValue
  public Object getValue()
Get this HTTP value, parsed value.
Overrides:
getValue in class BasicValue
 o addCookie
  public HttpCookie addCookie(String name,
                              String value)
Add a cookie to this header value.
Parameters:
name - The name of the cookie to add.
value - It's value.
Returns:
A HttpCookie instance, tha represents this cookie in the header value.
 o removeCookie
  public boolean removeCookie(String name)
Remove a cookie from this header value.
Parameters:
name - The name of the cookie to remove.
Returns:
A boolean, true If the cookie was found, and removed, false otherwise.
 o getCookie
  public HttpCookie getCookie(String name)
Lookup a cookie by name.
Parameters:
name - The name of the cooie to lookup.
Returns:
A HttpCookie instance, or null if not found.

All Packages  Class Hierarchy  This Package  Previous  Next  Index