All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpAccept

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

public class HttpAccept
extends BasicValue

Variable Index

 o aparams
The list of accept parameters name.
 o avalues
The list of accept parameters value.
 o type
The accepted MIME type.

Constructor Index

 o HttpAccept()

Method Index

 o getAcceptParameter(String)
Get the String value for a parameter.
 o getMimeType()
Get this object accepted MIME type.
 o getQuality()
Get the quality of this accept clause.
 o getValue()
HeaderValue implemenntation - Get this header value.
 o invalideByteValue()
 o lookup(String)
Lookup for the given parameter binding.
 o parse()
Parse this header value into its various components.
 o setAcceptParameter(String, String)
Set the value of an accept parameter.
 o setMimeType(MimeType)
Set the accepted MIME type.
 o updateByteValue()
Update the RFC822 compatible header value for this object.

Variables

 o aparams
 protected String aparams[]
The list of accept parameters name.

 o avalues
 protected String avalues[]
The list of accept parameters value.

 o type
 protected MimeType type
The accepted MIME type.

Constructors

 o HttpAccept
 public HttpAccept()

Methods

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

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

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

Overrides:
getValue in class BasicValue
 o lookup
 protected int lookup(String name)
Lookup for the given parameter binding.

Returns:
The slot number for this parameter, or -1 if undefined.
 o getAcceptParameter
 public String getAcceptParameter(String name)
Get the String value for a parameter.

Returns:
The String value for the accept parameter, or null if undefined.
 o setAcceptParameter
 public void setAcceptParameter(String name,
                                String value)
Set the value of an accept parameter.

Parameters:
name - The name of the accept parameter to set.
value - The value of the accept parameter to set.
 o getMimeType
 public MimeType getMimeType()
Get this object accepted MIME type.

Returns:
The accepted MIME type.
 o setMimeType
 public void setMimeType(MimeType type)
Set the accepted MIME type.

Parameters:
type - The accepted MIME type.
 o getQuality
 public double getQuality()
Get the quality of this accept clause.

Returns:
A double value, encoding the quality, or 1.0 if undefined.

All Packages  Class Hierarchy  This Package  Previous  Next  Index