    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.http.HttpAcceptCharset

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

public class HttpAcceptCharset
extends BasicValue

##

HttpAcceptCharset()

##

getCharset()
  Get this accept charset clause charset.
getQuality()
  Get the quality at which this charset is accepted.
getValue()
  HeaderValue implemenntation - Get this header value.
invalidateByteValue()
  Invalidate the current byte value for this header, if any.
parse()
  Parse this header value into its various components.
setCharset(String)
  Set the charset accepted by this clause.
setQuality(double)
  Set the quality under which this charset is accepted.
updateByteValue()
  Update the RFC822 compatible header value for this object.

##

HttpAcceptCharset

      public HttpAcceptCharset()

##

parse

      protected void parse() throws HttpParserException

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

invalidateByteValue

      protected void invalidateByteValue()

  Invalidate the current byte value for this header, if any.
  Overrides:
    invalidateByteValue in class BasicValue

updateByteValue

      protected void updateByteValue()

  Update the RFC822 compatible header value for this object.
  Overrides:
    updateByteValue in class BasicValue

getValue

      public Object getValue()

  HeaderValue implemenntation - Get this header value.
  Overrides:
    getValue in class BasicValue

getCharset

      public String getCharset()

  Get this accept charset clause charset.
  Returns:
    A String encoding the charset token.

setCharset

      public void setCharset(String charset)

  Set the charset accepted by this clause.
  Parameters:
    charset - The accepted charset.

getQuality

      public double getQuality()

  Get the quality at which this charset is accepted.
  Returns:
    A double value, encoding the quality, or 1.0 if undefined.

setQuality

      public void setQuality(double quality)

  Set the quality under which this charset is accepted.
  Parameters:
    q - The quality for this charset.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index