    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.HttpAcceptLanguage

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

public class HttpAcceptLanguage
extends BasicValue

##

HttpAcceptLanguage()

##

getLanguage()
  Get this accept language clause language.
getQuality()
  Get the quality at which this language is accepted.
getValue()
  HeaderValue implemenntation - Get this header value.
invalidateByteValue()
  Invalidate the current byte value for this header, if any.
parse()
  parse.
setLanguage(String)
  Set the language accepted by this clause.
setQuality(double)
  Set the quality under which this language is accepted.
updateByteValue()
  Update the RFC822 compatible header value for this object.

##

HttpAcceptLanguage

     public HttpAcceptLanguage()

##

parse

     protected void parse() throws HttpParserException

  parse.

  Throws: HttpParserException
    if parsing failed.
  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

getLanguage

     public String getLanguage()

  Get this accept language clause language.

  Returns:
    A String encoding the language token.

setLanguage

     public void setLanguage(String language)

  Set the language accepted by this clause.

  Parameters:
    language - The accepted language.

getQuality

     public double getQuality()

  Get the quality at which this language 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 language is accepted.

  Parameters:
    q - The quality for this language.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index