    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.HttpCookieList

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

public class HttpCookieList
extends BasicValue

##

HttpCookieList()

##

addCookie(String, String)
  Add a cookie to this header value.
deprecatedParse()
deprecatedUpdateByteValue()
getCookie(String)
  Lookup a cookie by name.
getCookies()
getValue()
  Get this HTTP value, parsed value.
parse()
  parse the Cookie Header according to the Netscape Specification: http://www.netscape.com/newsref/std/cookie_spec.html
removeCookie(String)
  Remove a cookie from this header value.
updateByteValue()
  Update the RFC822 compatible header value for this object.

##

HttpCookieList

     public HttpCookieList()

##

updateByteValue

     protected void updateByteValue()

  Update the RFC822 compatible header value for this object.

  Overrides:
    updateByteValue in class BasicValue

deprecatedUpdateByteValue

     protected void deprecatedUpdateByteValue()

parse

     protected void parse() throws HttpParserException

  parse the Cookie Header according to the Netscape Specification: http://www.netscape.com/newsref/std/cookie_spec.html

  Overrides:
    parse in class BasicValue

deprecatedParse

     protected void deprecatedParse() throws HttpParserException

getValue

     public Object getValue()

  Get this HTTP value, parsed value.

  Overrides:
    getValue in class BasicValue

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.

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.

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.

getCookies

     public HttpCookie[] getCookies()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index