All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpAcceptLanguage

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

public class HttpAcceptLanguage
extends BasicValue

Constructor Index

 o HttpAcceptLanguage()

Method Index

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

Constructors

 o HttpAcceptLanguage
 public HttpAcceptLanguage()

Methods

 o parse
 protected void parse() throws HttpParserException
Parse this header value into its various components.

Overrides:
parse in class BasicValue
 o invalidateByteValue
 protected void invalidateByteValue()
Invalidate the current byte value for this header, if any.

Overrides:
invalidateByteValue in class BasicValue
 o updateByteValue
 protected void updateByteValue()
Update the RFC822 compatible header value for this object.

Overrides:
updateByteValue in class BasicValue
 o getValue
 public Object getValue()
HeaderValue implemenntation - Get this header value.

Overrides:
getValue in class BasicValue
 o getLanguage
 public String getLanguage()
Get this accept language clause language.

Returns:
A String encoding the language token.
 o setLanguage
 public void setLanguage(String language)
Set the language accepted by this clause.

Parameters:
language - The accepted language.
 o 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.
 o 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