    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

##

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

##

HttpAccept()

##

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

##

aparams

     protected String aparams[]

  The list of accept parameters name.

avalues

     protected String avalues[]

  The list of accept parameters value.

type

     protected MimeType type

  The accepted MIME type.

##

HttpAccept

     public HttpAccept()

##

parse

     protected void parse() throws HttpParserException

  Parse this header value into its various components.

  Overrides:
    parse in class BasicValue

updateByteValue

     protected void updateByteValue()

  Update the RFC822 compatible header value for this object.

  Overrides:
    updateByteValue in class BasicValue

invalideByteValue

     protected void invalideByteValue()

getValue

     public Object getValue()

  HeaderValue implemenntation - Get this header value.

  Overrides:
    getValue in class BasicValue

lookup

     protected int lookup(String name)

  Lookup for the given parameter binding.

  Returns:
    The slot number for this parameter, or -1 if undefined.

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.

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.

getMimeType

     public MimeType getMimeType()

  Get this object accepted MIME type.

  Returns:
    The accepted MIME type.

setMimeType

     public void setMimeType(MimeType type)

  Set the accepted MIME type.

  Parameters:
    type - The accepted MIME type.

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