Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.w3c.www.http
Class HttpAccept

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

public class HttpAccept
extends BasicValue

Field Summary
`protected java.lang.String[]` | `aparams` The list of accept parameters name.
`protected java.lang.String[]` | `avalues` The list of accept parameters value.
`protected MimeType` | `type` The accepted MIME type.

Fields inherited from class org.w3c.www.http.BasicValue
`isValid, raw, rlen, roff`

Constructor Summary
`HttpAccept()`

Method Summary
`java.lang.String` | `getAcceptParameter(java.lang.String name)` Get the String value for a parameter.
`MimeType` | `getMimeType()` Get this object accepted MIME type.
`double` | `getQuality()` Get the quality of this accept clause.
`java.lang.Object` | `getValue()`
`protected void` | `invalideByteValue()`
`protected int` | `lookup(java.lang.String name)` Lookup for the given parameter binding.
`protected void` | `parse()` parse.
`void` | `setAcceptParameter(java.lang.String name, java.lang.String value)` Set the value of an accept parameter.
`void` | `setMimeType(MimeType type)` Set the accepted MIME type.
`protected void` | `updateByteValue()`

Methods inherited from class org.w3c.www.http.BasicValue
`addBytes, appendValue, checkByteValue, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### aparams

    protected java.lang.String[] aparams

  The list of accept parameters name.

### avalues

    protected java.lang.String[] avalues

  The list of accept parameters value.

### type

    protected MimeType type

  The accepted MIME type.

Constructor Detail

### HttpAccept

    public HttpAccept()

Method Detail

### parse

    protected void parse()
                  throws HttpParserException

  parse.
  Throws:
    HttpParserException - if parsing failed.
  Overrides:
    parse in class BasicValue

### updateByteValue

    protected void updateByteValue()

  Overrides:
    updateByteValue in class BasicValue

### invalideByteValue

    protected void invalideByteValue()

### getValue

    public java.lang.Object getValue()

  Overrides:
    getValue in class BasicValue

### lookup

    protected int lookup(java.lang.String name)

  Lookup for the given parameter binding.
  Returns:
    The slot number for this parameter, or -1 if undefined.

### getAcceptParameter

    public java.lang.String getAcceptParameter(java.lang.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(java.lang.String name,
                                   java.lang.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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD