    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

##

HttpCookieList()

##

addCookie(String, String)
  Add a cookie to this header value.
getCookie(String)
  Lookup a cookie by name.
getValue()
  Get this HTTP value, parsed value.
parse()
  Parse this header value into its various components.
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

parse

      protected void parse() throws HttpParserException

  Parse this header value into its various components.
  Overrides:
    parse in class BasicValue

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.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index