    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.HttpAcceptEncoding

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

public class HttpAcceptEncoding
extends BasicValue

##

HttpAcceptEncoding()

##

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

##

HttpAcceptEncoding

     public HttpAcceptEncoding()

##

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

getEncoding

     public String getEncoding()

  Get this accept encoding clause encoding.

  Returns:
    A String encoding the encoding token.

setEncoding

     public void setEncoding(String encoding)

  Set the encoding accepted by this clause.

  Parameters:
    encoding - The accepted encoding.

getQuality

     public double getQuality()

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

  Parameters:
    q - The quality for this encoding.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index